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 */
}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: InputFlagsInput mode flags (see termios.c_iflag documentation)
output_flags: OutputFlagsOutput mode flags (see termios.c_oflag documentation)
control_flags: ControlFlagsControl mode flags (see termios.c_cflag documentation)
local_flags: LocalFlagsLocal mode flags (see termios.c_lflag documentation)
control_chars: [cc_t; 32]Control characters (see termios.c_cc documentation)
line_discipline: cc_tAvailable on
linux_android only.Line discipline (see termios.c_line documentation)
Trait Implementations§
impl Eq for Termios
impl StructuralPartialEq for Termios
Auto Trait Implementations§
impl !Freeze for Termios
Available on Unix only.
impl !RefUnwindSafe for Termios
Available on Unix only.
impl !Sync for Termios
Available on Unix only.
impl Send for Termios
Available on Unix only.
impl Unpin for Termios
Available on Unix only.
impl UnsafeUnpin for Termios
Available on Unix only.
impl UnwindSafe for Termios
Available on Unix only.
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Unix only.
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Unix only.
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
Available on Unix only.
impl<T> CloneToUninit for Twhere
T: Clone,
Available on Unix only.