Struct pty_process::Child[][src]

pub struct Child<C, P> { /* fields omitted */ }

Wrapper struct adding pty methods to the normal Child struct.

Implementations

impl<C, P> Child<C, P> where
    P: Pty, 
[src]

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

impl<C, P> Deref for Child<C, P>[src]

type Target = C

The resulting type after dereferencing.

impl<C, P> DerefMut for Child<C, P>[src]

Auto Trait Implementations

impl<C, P> RefUnwindSafe for Child<C, P> where
    C: RefUnwindSafe,
    P: RefUnwindSafe

impl<C, P> Send for Child<C, P> where
    C: Send,
    P: Send

impl<C, P> Sync for Child<C, P> where
    C: Sync,
    P: Sync

impl<C, P> Unpin for Child<C, P> where
    C: Unpin,
    P: Unpin

impl<C, P> UnwindSafe for Child<C, P> where
    C: UnwindSafe,
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.