pub enum Reception {
Frame {
len: usize,
status: PacketStatus,
},
Timeout,
Corrupt,
}Expand description
How a reception ended.
Variants§
Frame
A frame whose header and CRC checked.
Fields
§
status: PacketStatusThe signal levels the frame arrived with.
Timeout
No frame arrived before the timeout.
Corrupt
A frame arrived whose header or CRC failed its check, and was dropped.
Trait Implementations§
impl Copy for Reception
impl Eq for Reception
impl StructuralPartialEq for Reception
Auto Trait Implementations§
impl Freeze for Reception
impl RefUnwindSafe for Reception
impl Send for Reception
impl Sync for Reception
impl Unpin for Reception
impl UnsafeUnpin for Reception
impl UnwindSafe for Reception
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