Struct indy_utils::UnexpectedError
source · pub struct UnexpectedError {
pub context: Option<String>,
pub source: Option<Box<dyn StdError + Send + Sync + 'static>>,
}
Expand description
Error type for eventualities that shouldn’t normally occur
Fields§
§context: Option<String>
§source: Option<Box<dyn StdError + Send + Sync + 'static>>
Implementations§
Trait Implementations§
source§impl Debug for UnexpectedError
impl Debug for UnexpectedError
source§impl Display for UnexpectedError
impl Display for UnexpectedError
source§impl Error for UnexpectedError
impl Error for UnexpectedError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<&str> for UnexpectedError
impl From<&str> for UnexpectedError
source§impl<M, E> From<(M, E)> for UnexpectedErrorwhere
M: Into<String>,
E: StdError + Send + Sync + 'static,
impl<M, E> From<(M, E)> for UnexpectedErrorwhere M: Into<String>, E: StdError + Send + Sync + 'static,
source§impl From<String> for UnexpectedError
impl From<String> for UnexpectedError
source§impl From<UnexpectedError> for ConversionError
impl From<UnexpectedError> for ConversionError
source§fn from(err: UnexpectedError) -> Self
fn from(err: UnexpectedError) -> Self
Converts to this type from the input type.
source§impl From<UnexpectedError> for EncryptionError
impl From<UnexpectedError> for EncryptionError
source§fn from(err: UnexpectedError) -> Self
fn from(err: UnexpectedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for UnexpectedError
impl Send for UnexpectedError
impl Sync for UnexpectedError
impl Unpin for UnexpectedError
impl !UnwindSafe for UnexpectedError
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