pub enum Reception {
Frame {
len: usize,
status: PacketStatus,
},
Timeout,
Corrupt,
}Expand description
How a reception ended.
Variants§
Frame
A frame whose CRC checked, or that carried none.
Fields
§
status: PacketStatusThe signal levels the frame arrived with.
Timeout
No preamble arrived before the timeout.
Corrupt
A frame arrived whose payload CRC failed, 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