pub enum BusErrorKind {
Bit,
Crc,
Form,
Ack,
Stuff,
Unknown(u8),
}Available on crate feature
unstable only.Expand description
Reason the core last flagged a bus error (TRM 38.3.13.1).
Variants§
Bit
The transmitted bit did not match the bit sampled back.
Crc
The frame’s CRC did not match.
Form
A fixed-form field held an illegal value.
Ack
No node acknowledged the frame.
Stuff
A stuffing rule was violated.
Unknown(u8)
Hardware reported a code this driver does not model.
Trait Implementations§
Source§impl Clone for BusErrorKind
impl Clone for BusErrorKind
impl Copy for BusErrorKind
Source§impl Debug for BusErrorKind
impl Debug for BusErrorKind
Source§impl Display for BusErrorKind
impl Display for BusErrorKind
impl Eq for BusErrorKind
Source§impl Error for BusErrorKind
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl Error for BusErrorKind
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§impl Error for BusErrorKind
impl Error for BusErrorKind
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BusErrorKind> for ErrorKind
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl From<BusErrorKind> for ErrorKind
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§fn from(kind: BusErrorKind) -> Self
fn from(kind: BusErrorKind) -> Self
Converts to this type from the input type.
Source§impl Hash for BusErrorKind
impl Hash for BusErrorKind
Source§impl PartialEq for BusErrorKind
impl PartialEq for BusErrorKind
impl StructuralPartialEq for BusErrorKind
Auto Trait Implementations§
impl Freeze for BusErrorKind
impl RefUnwindSafe for BusErrorKind
impl Send for BusErrorKind
impl Sync for BusErrorKind
impl Unpin for BusErrorKind
impl UnsafeUnpin for BusErrorKind
impl UnwindSafe for BusErrorKind
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)