#[repr(u8)]pub enum Control {
Soh = 1,
Stx = 2,
Eot = 4,
Ack = 6,
Dle = 16,
Xon = 17,
Xof = 19,
Nak = 21,
Syn = 22,
Can = 24,
Eof = 26,
Idle = 67,
}
Expand description
Represents XMODEM control bytes.
Variants§
Soh = 1
Start of Header.
Stx = 2
Start of Transmission.
Eot = 4
End of Transmission.
Ack = 6
Positive Acknowledgement.
Dle = 16
Data Link Escape.
Xon = 17
Transmit On (DC1).
Xof = 19
Transmit Off (DC3).
Nak = 21
Negative Acknowledgement.
Syn = 22
Synchronous Idle.
Can = 24
Cancel.
Eof = 26
Control Packet Modem End-of-File (Ctrl-Z
).
Idle = 67
Idle receiver (XMODEK-1K, ASCII “C”).
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 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