#[non_exhaustive]pub enum InvalidReason {
Show 13 variants
UnsupportedVersion(u8),
UnknownCommand(u8),
UnknownFamily(u8),
UnknownProtocol(u8),
V1TooLong,
V1NotUtf8,
V1InvalidFormat,
V1UnknownTransport(String),
InvalidIp(String),
InvalidPort(String),
UnspecWithProxy,
PayloadOverflow {
len: usize,
buf_len: usize,
},
MalformedTlv {
offset: usize,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedVersion(u8)
UnknownCommand(u8)
UnknownFamily(u8)
UnknownProtocol(u8)
V1TooLong
V1NotUtf8
V1InvalidFormat
V1UnknownTransport(String)
InvalidIp(String)
InvalidPort(String)
UnspecWithProxy
PayloadOverflow
MalformedTlv
Trait Implementations§
Source§impl Debug for InvalidReason
impl Debug for InvalidReason
Source§impl Display for InvalidReason
impl Display for InvalidReason
Source§impl Error for InvalidReason
impl Error for InvalidReason
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for InvalidReason
impl RefUnwindSafe for InvalidReason
impl Send for InvalidReason
impl Sync for InvalidReason
impl Unpin for InvalidReason
impl UnsafeUnpin for InvalidReason
impl UnwindSafe for InvalidReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more