pub struct State { /* private fields */ }Expand description
Snapshot of a terminal’s configuration.
On Unix this stores a libc::termios value read from the input descriptor,
falling back to the output descriptor if necessary. On Windows it stores
both input and output console-mode bitfields.
Use values returned by Terminal::get_state
or Terminal::make_raw with
Terminal::set_state to restore a
terminal to a previous configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more