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 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
Sourcepub fn set_nonblocking(&mut self, nonblocking: bool) -> Result<()>
pub fn set_nonblocking(&mut self, nonblocking: bool) -> Result<()>
Sets non-blocking mode on the master.
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