pub enum TryIntoMessageError {
IoError(Error),
ParseAddressError(ParseError),
InvalidEncoding(InvalidEncoding),
}Expand description
This error indicates that conversion from message row to message failed.
Variants§
IoError(Error)
A standard I/O error was caught during converting a message. The actual error caught is returned as a payload of this variant.
ParseAddressError(ParseError)
An error was caught during parsing a Bitmessage address. The actual error caught is returned as a payload of this variant.
InvalidEncoding(InvalidEncoding)
An error was caught during parsing a message encoding type. The actual error caught is returned as a payload of this variant.
Trait Implementations§
Source§impl Debug for TryIntoMessageError
impl Debug for TryIntoMessageError
Source§impl Display for TryIntoMessageError
impl Display for TryIntoMessageError
Source§impl Error for TryIntoMessageError
impl Error for TryIntoMessageError
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()
Source§impl From<Error> for TryIntoMessageError
impl From<Error> for TryIntoMessageError
Source§impl From<InvalidEncoding> for TryIntoMessageError
impl From<InvalidEncoding> for TryIntoMessageError
Source§fn from(err: InvalidEncoding) -> Self
fn from(err: InvalidEncoding) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for TryIntoMessageError
impl From<ParseError> for TryIntoMessageError
Source§fn from(err: ParseAddressError) -> Self
fn from(err: ParseAddressError) -> Self
Converts to this type from the input type.
Source§impl From<TryIntoMessageError> for Error
impl From<TryIntoMessageError> for Error
Source§fn from(err: TryIntoMessageError) -> Self
fn from(err: TryIntoMessageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TryIntoMessageError
impl !RefUnwindSafe for TryIntoMessageError
impl Send for TryIntoMessageError
impl Sync for TryIntoMessageError
impl Unpin for TryIntoMessageError
impl !UnwindSafe for TryIntoMessageError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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