Enum expectrl::ControlCode [−][src]
pub enum ControlCode {}Show variants
Null, StartOfHeading, StartOfText, EndOfText, EndOfTransmission, Enquiry, Acknowledge, Bell, Backspace, HorizontalTabulation, LineFeed, VerticalTabulation, FormFeed, CarriageReturn, ShiftOut, ShiftIn, DataLinkEscape, DeviceControl1, DeviceControl2, DeviceControl3, DeviceControl4, NegativeAcknowledge, SynchronousIdle, EndOfTransmissionBlock, Cancel, EndOfMedium, Substitute, Escape, FileSeparator, GroupSeparator, RecordSeparator, UnitSeparator, Space, Delete,
Expand description
ControlCode represents the standard ASCII control codes wiki
Variants
Often used as a string terminator, especially in the programming language C.
In message transmission, delimits the start of a message header.
First character of message text, and may be used to terminate the message heading.
Often used as a “break” character (Ctrl-C) to interrupt or terminate a program or process.
Often used on Unix to indicate end-of-file on a terminal (Ctrl-D).
Signal intended to trigger a response at the receiving end, to see if it is still present.
Response to an Enquiry, or an indication of successful receipt of a message.
Used for a beep on systems that didn’t have a physical bell.
Move the cursor one position leftwards. On input, this may delete the character to the left of the cursor.
Position to the next character tab stop.
On Unix, used to mark end-of-line. In DOS, Windows, and various network standards, LF is used following CR as part of the end-of-line mark.
Position the form at the next line tab stop.
It appears in some common plain text files as a page break character.
Originally used to move the cursor to column zero while staying on the same line.
Switch to an alternative character set.
Return to regular character set after ShiftOut.
May cause a limited number of contiguously following octets to be interpreted in some different way.
A control code which is reserved for device control.
A control code which is reserved for device control.
A control code which is reserved for device control.
A control code which is reserved for device control.
In multipoint systems, the NAK is used as the not-ready reply to a poll.
Used in synchronous transmission systems to provide a signal from which synchronous correction may be achieved.
Indicates the end of a transmission block of data.
Indicates that the data preceding it are in error or are to be disregarded.
May mark the end of the used portion of the physical medium.
Sometimes used to indicate the end of file, both when typing on the terminal and in text files stored on disk.
The Esc key on the keyboard will cause this character to be sent on most systems. In systems based on ISO/IEC 2022, even if another set of C0 control codes are used, this octet is required to always represent the escape character.
Can be used as delimiters to mark fields of data structures. Also it used for hierarchical levels; FS == level 4
It used for hierarchical levels; GS == level 3
It used for hierarchical levels; RS == level 2
It used for hierarchical levels; US == level 1
Space is a graphic character. It causes the active position to be advanced by one character position.
Usually called backspace on modern machines, and does not correspond to the PC delete key.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ControlCode
impl Send for ControlCode
impl Sync for ControlCode
impl Unpin for ControlCode
impl UnwindSafe for ControlCode
Blanket Implementations
Mutably borrows from an owned value. Read more