pub enum Invalid {
Show 16 variants
Oid {
expected: usize,
actual: usize,
},
Bounded(Error),
FilterSize {
actual: usize,
},
FromUtf8(FromUtf8Error),
RefName(Error),
Alias(AliasError),
InvalidUserAgent {
err: String,
},
OnionAddr(OnionAddrDecodeError),
Timestamp {
actual_millis: u64,
},
ControlType {
actual: u8,
},
StreamType {
actual: u8,
},
AddressType {
actual: u8,
},
MessageType {
actual: u16,
},
InfoMessageType {
actual: u16,
},
ProtocolVersion {
actual: [u8; 4],
},
ProtocolVersionUnsupported {
actual: u8,
},
}Variants§
Oid
Bounded(Error)
FilterSize
FromUtf8(FromUtf8Error)
RefName(Error)
Alias(AliasError)
InvalidUserAgent
OnionAddr(OnionAddrDecodeError)
Timestamp
ControlType
StreamType
AddressType
MessageType
InfoMessageType
ProtocolVersion
ProtocolVersionUnsupported
Trait Implementations§
Source§impl Error for Invalid
impl Error for Invalid
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()
Source§impl From<AliasError> for Invalid
impl From<AliasError> for Invalid
Source§fn from(source: AliasError) -> Invalid
fn from(source: AliasError) -> Invalid
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for Invalid
impl From<FromUtf8Error> for Invalid
Source§fn from(source: FromUtf8Error) -> Invalid
fn from(source: FromUtf8Error) -> Invalid
Converts to this type from the input type.
Source§impl From<OnionAddrDecodeError> for Invalid
impl From<OnionAddrDecodeError> for Invalid
Source§fn from(source: OnionAddrDecodeError) -> Invalid
fn from(source: OnionAddrDecodeError) -> Invalid
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Invalid
impl RefUnwindSafe for Invalid
impl Send for Invalid
impl Sync for Invalid
impl Unpin for Invalid
impl UnwindSafe for Invalid
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more