Struct Termios
struct Termios { ... }
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)
Implementations
impl Clone for Termios
fn clone(self: &Self) -> Termios
impl Debug for Termios
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for Termios
impl Freeze for Termios
impl From for Termios
fn from(termios: termios) -> Self
impl PartialEq for Termios
fn eq(self: &Self, other: &Termios) -> bool
impl RefUnwindSafe for Termios
impl Send for Termios
impl StructuralPartialEq for Termios
impl Sync for Termios
impl Unpin for Termios
impl UnsafeUnpin for Termios
impl UnwindSafe for Termios
impl<T> Any for Termios
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Termios
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Termios
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Termios
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Termios
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Termios
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Termios
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Termios
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Termios
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>