Enum mempool_space::error::ResolveTargetError
source · pub enum ResolveTargetError {
Message(ErrorMessage),
IoError(ErrorMessage, Error),
GenericError(ErrorMessage, Box<dyn Error>),
}Expand description
Custom error type for a failed attempt to resolve a Target.
Variants§
Message(ErrorMessage)
ResolveTargetError containing a Message
IoError(ErrorMessage, Error)
ResolveTargetError containing a Message and an io::Error
GenericError(ErrorMessage, Box<dyn Error>)
ResolveTargetError containing a Message and a trait object implementing Error
Trait Implementations§
source§impl Debug for ResolveTargetError
impl Debug for ResolveTargetError
source§impl Display for ResolveTargetError
impl Display for ResolveTargetError
source§impl Error for ResolveTargetError
impl Error for ResolveTargetError
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<&'static str> for ResolveTargetError
impl From<&'static str> for ResolveTargetError
source§fn from(message: ErrorMessage) -> Self
fn from(message: ErrorMessage) -> Self
Converts to this type from the input type.
source§impl From<(&'static str, Error)> for ResolveTargetError
impl From<(&'static str, Error)> for ResolveTargetError
source§fn from(pieces: (ErrorMessage, Error)) -> Self
fn from(pieces: (ErrorMessage, Error)) -> Self
Converts to this type from the input type.
source§impl From<Error> for ResolveTargetError
impl From<Error> for ResolveTargetError
source§impl From<ResolveTargetError> for CheckTargetError
impl From<ResolveTargetError> for CheckTargetError
source§fn from(error: ResolveTargetError) -> Self
fn from(error: ResolveTargetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResolveTargetError
impl !RefUnwindSafe for ResolveTargetError
impl !Send for ResolveTargetError
impl !Sync for ResolveTargetError
impl Unpin for ResolveTargetError
impl !UnwindSafe for ResolveTargetError
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