pub enum ValidateError {
Parse(ParseError),
ResendRequestPath,
ResendRequestMissingSequence,
ChannelGroupResendPath,
UnavailableMissingSequence,
RegardingWidth,
UnrecognizedMessageType(u8),
DuplicateExtensionOption(u16),
InvalidExtensionOption(u16),
}Expand description
Why a syntactically valid message was rejected in context.
Variants§
Parse(ParseError)
Propagated syntactic error (UTF-8 of a complete body, extension decoding).
ResendRequestPath
A resend request arrived via multicast or broadcast.
ResendRequestMissingSequence
A resend request did not carry a Message Sequence option.
ChannelGroupResendPath
The Channel Group Resend flag appeared on a resend request that did not arrive by blind-unicast.
A Message Unavailable response did not carry a Message Sequence option.
RegardingWidth
The Regarding option width does not match the conversation type.
UnrecognizedMessageType(u8)
The message type is not recognized by the selected profile.
DuplicateExtensionOption(u16)
A recognized extension option was duplicated in a role where duplication is unresolvable.
InvalidExtensionOption(u16)
A recognized extension option had an invalid value.
Trait Implementations§
Source§impl Clone for ValidateError
impl Clone for ValidateError
Source§fn clone(&self) -> ValidateError
fn clone(&self) -> ValidateError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidateError
impl Debug for ValidateError
Source§impl From<ParseError> for ValidateError
impl From<ParseError> for ValidateError
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ValidateError
impl PartialEq for ValidateError
impl Copy for ValidateError
impl Eq for ValidateError
impl StructuralPartialEq for ValidateError
Auto Trait Implementations§
impl Freeze for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnwindSafe for ValidateError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)