#[repr(u8)]pub enum FrameType {
Data = 1,
Ack = 2,
Nack = 3,
Start = 4,
Finish = 5,
Abort = 6,
}Expand description
The role a frame plays on the wire.
Variants§
Data = 1
Carries one payload byte.
Ack = 2
Positive acknowledgement of a given sequence number.
Nack = 3
Negative acknowledgement: this sequence number was rejected.
Start = 4
Opens a session; receiver resets expected_seq to 0.
Finish = 5
Closes a session; must be ACKed before either side is done.
Abort = 6
Cancels a session immediately. SEQ = 0, DATA = 0. Must be ACKed.
Trait Implementations§
impl Copy for FrameType
impl Eq for FrameType
impl StructuralPartialEq for FrameType
Auto Trait Implementations§
impl Freeze for FrameType
impl RefUnwindSafe for FrameType
impl Send for FrameType
impl Sync for FrameType
impl Unpin for FrameType
impl UnsafeUnpin for FrameType
impl UnwindSafe for FrameType
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