Struct Termios
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], pub line_discipline: cc_t, /* private fields */ }
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: InputFlagsInput mode flags (see
termios.c_iflagdocumentation)output_flags: OutputFlagsOutput mode flags (see
termios.c_oflagdocumentation)control_flags: ControlFlagsControl mode flags (see
termios.c_cflagdocumentation)local_flags: LocalFlagsLocal mode flags (see
termios.c_lflagdocumentation)control_chars: [cc_t; 32]Control characters (see
termios.c_ccdocumentation)line_discipline: cc_tLine discipline (see
termios.c_linedocumentation)
Trait Implementations
impl Clone for Termios
fn clone(&self) -> Self
impl Debug for Termios
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Termios
impl From<termios> for Termios
fn from(termios: termios) -> Self
impl PartialEq for Termios
fn eq(&self, other: &Self) -> bool