pub enum Control {
Snrm {
poll: bool,
},
Ua {
final_bit: bool,
},
Disc {
poll: bool,
},
Dm {
final_bit: bool,
},
Frmr {
final_bit: bool,
},
Ui {
poll: bool,
},
Information {
send_seq: u8,
recv_seq: u8,
poll: bool,
},
ReceiveReady {
recv_seq: u8,
poll_final: bool,
},
ReceiveNotReady {
recv_seq: u8,
poll_final: bool,
},
}Expand description
The HDLC control field.
Variants§
Snrm
Set Normal Response Mode (connection establishment).
Ua
Unnumbered Acknowledge.
Disc
Disconnect.
Dm
Disconnected Mode.
Frmr
Frame Reject.
Ui
Unnumbered Information.
Information
Information frame with send/receive sequence numbers.
Fields
ReceiveReady
Receive Ready (supervisory).
ReceiveNotReady
Receive Not Ready (supervisory).
Implementations§
Trait Implementations§
impl Copy for Control
impl Eq for Control
impl StructuralPartialEq for Control
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnsafeUnpin for Control
impl UnwindSafe for Control
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