pub enum MitoxideError {
Transport(String),
Protocol(String),
Agent(String),
Auth(String),
Timeout {
duration: Duration,
},
Io(Error),
Serialization(String),
Connection(String),
Session(String),
}Expand description
Main error type for Mitoxide operations
Variants§
Transport(String)
Transport-related errors
Protocol(String)
Protocol-related errors
Agent(String)
Agent-related errors
Auth(String)
Authentication errors
Timeout
Timeout errors
Io(Error)
I/O errors
Serialization(String)
Serialization errors
Connection(String)
Connection errors
Session(String)
Session errors
Trait Implementations§
Source§impl Debug for MitoxideError
impl Debug for MitoxideError
Source§impl Display for MitoxideError
impl Display for MitoxideError
Source§impl Error for MitoxideError
impl Error for MitoxideError
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 MitoxideError
impl From<Error> for MitoxideError
Source§impl From<Error> for MitoxideError
impl From<Error> for MitoxideError
Source§impl From<Error> for MitoxideError
impl From<Error> for MitoxideError
Source§impl From<Error> for MitoxideError
impl From<Error> for MitoxideError
Source§impl From<TransportError> for MitoxideError
impl From<TransportError> for MitoxideError
Source§fn from(err: TransportError) -> Self
fn from(err: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MitoxideError
impl !RefUnwindSafe for MitoxideError
impl Send for MitoxideError
impl Sync for MitoxideError
impl Unpin for MitoxideError
impl !UnwindSafe for MitoxideError
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