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
impl StructuralPartialEq for Termios
Auto Trait Implementations
impl !Freeze for Termios
impl !RefUnwindSafe for Termios
impl !Sync for Termios
impl Send for Termios
impl Unpin for Termios
impl UnsafeUnpin for Termios
impl UnwindSafe for Termios
Blanket Implementations
impl<T> Any for Termios
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Termios
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Termios
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Termios
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Termios
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Termios
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Termios
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Termios
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Termios
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>