pub struct SshPty { /* private fields */ }
Trait Implementations§
Source§impl MasterPty for SshPty
impl MasterPty for SshPty
Source§fn resize(&self, size: PtySize) -> Result<()>
fn resize(&self, size: PtySize) -> Result<()>
Inform the kernel and thus the child process that the window resized.
It will update the winsize information maintained by the kernel,
and generate a signal for the child to notice and update its state.
Source§fn try_clone_reader(&self) -> Result<Box<dyn Read + Send + 'static>>
fn try_clone_reader(&self) -> Result<Box<dyn Read + Send + 'static>>
Obtain a readable handle; output from the slave(s) is readable
via this stream.
Source§fn try_clone_writer(&self) -> Result<Box<dyn Write + Send + 'static>>
fn try_clone_writer(&self) -> Result<Box<dyn Write + Send + 'static>>
Obtain a writable handle; writing to it will send data to the
slave end. This is equivalent to the Write impl on MasterPty
itself, but allows splitting it off into a separate object.
Source§fn process_group_leader(&self) -> Option<i32>
fn process_group_leader(&self) -> Option<i32>
If applicable to the type of the tty, return the local process id
of the process group or session leader
Source§impl Write for SshPty
impl Write for SshPty
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flushes this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector
)1.0.0 · Source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
Source§fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations§
impl !Freeze for SshPty
impl RefUnwindSafe for SshPty
impl Send for SshPty
impl Sync for SshPty
impl Unpin for SshPty
impl UnwindSafe for SshPty
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