pub struct CanDeviceError {
pub kind: CanDeviceErrorKind,
pub message: String,
}Expand description
结构化设备错误
Fields§
§kind: CanDeviceErrorKind§message: StringImplementations§
Trait Implementations§
Source§impl Clone for CanDeviceError
impl Clone for CanDeviceError
Source§fn clone(&self) -> CanDeviceError
fn clone(&self) -> CanDeviceError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanDeviceError
impl Debug for CanDeviceError
Source§impl Display for CanDeviceError
impl Display for CanDeviceError
Source§impl Error for CanDeviceError
impl Error for CanDeviceError
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()
Source§impl From<&str> for CanDeviceError
impl From<&str> for CanDeviceError
Source§impl From<CanDeviceError> for CanError
impl From<CanDeviceError> for CanError
Source§fn from(source: CanDeviceError) -> Self
fn from(source: CanDeviceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CanDeviceError
impl RefUnwindSafe for CanDeviceError
impl Send for CanDeviceError
impl Sync for CanDeviceError
impl Unpin for CanDeviceError
impl UnwindSafe for CanDeviceError
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