pub enum MspErr {
DataErr(String),
InternalErr(String),
NoImpl(String),
IoErr(Error),
}
Expand description
Msp error uniform error definition.
Variants§
DataErr(String)
Unintended errors occur when processing data.
InternalErr(String)
Internal errors sent, including type conversion, string analysis, etc.
NoImpl(String)
Unimplemented features.
IoErr(Error)
Handling errors that occur during sockets.
Trait Implementations§
source§impl Error for MspErr
impl Error for MspErr
1.30.0 · 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<ParseIntError> for MspErr
impl From<ParseIntError> for MspErr
source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<SystemTimeError> for MspErr
impl From<SystemTimeError> for MspErr
source§fn from(err: SystemTimeError) -> Self
fn from(err: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MspErr
impl Send for MspErr
impl Sync for MspErr
impl Unpin for MspErr
impl !UnwindSafe for MspErr
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