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

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

Returns the argument unchanged.

impl<T> ToOwned for Termios where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for Termios where U: From<T>,

fn into(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<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>