pub struct PtyConsole { /* private fields */ }Expand description
PTY (pseudo-terminal) console backend.
Provides a real terminal interface that can be connected to by terminal emulators or the host shell.
Implementations§
Source§impl PtyConsole
impl PtyConsole
Sourcepub fn new() -> Result<PtyConsole, Error>
pub fn new() -> Result<PtyConsole, Error>
Sourcepub fn slave_path(&self) -> &str
pub fn slave_path(&self) -> &str
Returns the path to the slave PTY device.
Users can connect to this path with a terminal emulator:
screen /dev/pts/Xminicom -D /dev/pts/X
Trait Implementations§
Source§impl ConsoleIo for PtyConsole
impl ConsoleIo for PtyConsole
Source§impl Drop for PtyConsole
impl Drop for PtyConsole
Auto Trait Implementations§
impl Freeze for PtyConsole
impl RefUnwindSafe for PtyConsole
impl Send for PtyConsole
impl Sync for PtyConsole
impl Unpin for PtyConsole
impl UnsafeUnpin for PtyConsole
impl UnwindSafe for PtyConsole
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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