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: 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)

line_discipline: cc_t

Line discipline (see termios.c_line documentation)

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) -> T

Returns the argument unchanged.

impl<T> ToOwned for Termios

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Termios

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses 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>