pub enum Frame {
Ack,
Nak,
Can,
Data(DataFrame),
Invalid,
}Expand description
One unit on the wire.
Variants§
Ack
ACK.
Nak
NAK.
Can
CAN.
Data(DataFrame)
A data frame with a valid checksum.
Invalid
A data frame whose checksum or type byte was wrong; answer with NAK.
Implementations§
Trait Implementations§
Source§impl Encoder<Frame> for FrameCodec
impl Encoder<Frame> for FrameCodec
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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