Struct pty_process::Child [−][src]
Wrapper struct adding pty methods to the normal Child
struct.
Implementations
impl<C, P> Child<C, P> where
P: Pty,
[src]
P: Pty,
pub fn pty(&self) -> &P::Pt
[src]
Returns a reference to the pty.
The underlying pty instance is guaranteed to implement
AsRawFd
, as well as the appropriate
Read
and Write
traits for the associated backend.
pub fn pty_mut(&mut self) -> &mut P::Pt
[src]
Returns a mutable reference to the pty.
The underlying pty instance is guaranteed to implement
AsRawFd
, as well as the appropriate
Read
and Write
traits for the associated backend.
This method is primarily useful for the tokio backend, since tokio’s
AsyncRead
and AsyncWrite
traits have methods which take mutable
references.
pub fn resize_pty(&self, size: &Size) -> Result<()>
[src]
Causes the pty to change its size.
This will additionally cause a SIGWINCH
signal to be sent to the
running process.
Trait Implementations
Auto Trait Implementations
impl<C, P> RefUnwindSafe for Child<C, P> where
C: RefUnwindSafe,
P: RefUnwindSafe,
C: RefUnwindSafe,
P: RefUnwindSafe,
impl<C, P> Send for Child<C, P> where
C: Send,
P: Send,
C: Send,
P: Send,
impl<C, P> Sync for Child<C, P> where
C: Sync,
P: Sync,
C: Sync,
P: Sync,
impl<C, P> Unpin for Child<C, P> where
C: Unpin,
P: Unpin,
C: Unpin,
P: Unpin,
impl<C, P> UnwindSafe for Child<C, P> where
C: UnwindSafe,
P: UnwindSafe,
C: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,