pub struct SlmpError {
pub message: String,
pub end_code: Option<u16>,
pub command: Option<SlmpCommand>,
pub subcommand: Option<u16>,
}Fields§
§message: String§end_code: Option<u16>§command: Option<SlmpCommand>§subcommand: Option<u16>Implementations§
Trait Implementations§
Source§impl Error for SlmpError
impl Error for SlmpError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SlmpError
impl RefUnwindSafe for SlmpError
impl Send for SlmpError
impl Sync for SlmpError
impl Unpin for SlmpError
impl UnsafeUnpin for SlmpError
impl UnwindSafe for SlmpError
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