Struct nix::sys::termios::Termios

source ·
pub struct Termios {
    pub input_flags: InputFlags,
    pub output_flags: OutputFlags,
    pub control_flags: ControlFlags,
    pub local_flags: LocalFlags,
    pub control_chars: [cc_t; 32],
    /* private fields */
}
Available on crate feature term only.
Expand description

Stores settings for the termios API

This is a wrapper around the libc::termios struct that provides a safe interface for the standard fields. The only safe way to obtain an instance of this struct is to extract it from an open port using tcgetattr().

Fields§

§input_flags: InputFlags

Input mode flags (see termios.c_iflag documentation)

§output_flags: OutputFlags

Output mode flags (see termios.c_oflag documentation)

§control_flags: ControlFlags

Control mode flags (see termios.c_cflag documentation)

§local_flags: LocalFlags

Local mode flags (see termios.c_lflag documentation)

§control_chars: [cc_t; 32]

Control characters (see termios.c_cc documentation)

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.