pub struct DefaultTerminal(/* private fields */);Expand description
Default Terminal interface
Implementations§
Source§impl DefaultTerminal
impl DefaultTerminal
Sourcepub fn new() -> Result<DefaultTerminal, Error>
pub fn new() -> Result<DefaultTerminal, Error>
Opens access to the terminal device associated with standard output.
Sourcepub fn stderr() -> Result<DefaultTerminal, Error>
pub fn stderr() -> Result<DefaultTerminal, Error>
Opens access to the terminal device associated with standard error.
Trait Implementations§
Source§impl Terminal for DefaultTerminal
impl Terminal for DefaultTerminal
Source§type PrepareState = PrepareState
type PrepareState = PrepareState
Returned by
prepare; passed to restore to restore state.Source§fn lock_read<'a>(&'a self) -> Box<dyn TerminalReader<DefaultTerminal> + 'a>
fn lock_read<'a>(&'a self) -> Box<dyn TerminalReader<DefaultTerminal> + 'a>
Acquires a lock on terminal read operations and returns a value holding
that lock and granting access to such operations. Read more
Source§fn lock_write<'a>(&'a self) -> Box<dyn TerminalWriter<DefaultTerminal> + 'a>
fn lock_write<'a>(&'a self) -> Box<dyn TerminalWriter<DefaultTerminal> + 'a>
Acquires a lock on terminal write operations and returns a value holding
that lock and granting access to such operations. Read more
Auto Trait Implementations§
impl !Freeze for DefaultTerminal
impl RefUnwindSafe for DefaultTerminal
impl Send for DefaultTerminal
impl Sync for DefaultTerminal
impl Unpin for DefaultTerminal
impl UnwindSafe for DefaultTerminal
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more