pub enum DefaultError {
ErrorMessage(String),
FromHexError(FromHexError),
FromUtf8Error(FromUtf8Error),
IoError(Error),
Unknown,
}
Variants§
ErrorMessage(String)
FromHexError(FromHexError)
FromUtf8Error(FromUtf8Error)
IoError(Error)
Unknown
Trait Implementations§
Source§impl Debug for DefaultError
impl Debug for DefaultError
Source§impl Display for DefaultError
impl Display for DefaultError
Source§impl Error for DefaultError
impl Error for DefaultError
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 DefaultError
impl From<Error> for DefaultError
Source§impl From<FromHexError> for DefaultError
impl From<FromHexError> for DefaultError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for DefaultError
impl From<FromUtf8Error> for DefaultError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DefaultError
impl !RefUnwindSafe for DefaultError
impl Send for DefaultError
impl Sync for DefaultError
impl Unpin for DefaultError
impl !UnwindSafe for DefaultError
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