[][src]Struct tokio_pty_process_stream::ResizingProcess

pub struct ResizingProcess<R: AsyncRead + 'static> { /* fields omitted */ }

A wrapper around Process which listens for terminal resize signals and propagates the changes into the process running on the pty.

This is useful for running subprocesses in a pty that will ultimately be displayed in the user's terminal directly.

Methods

impl<R: AsyncRead + 'static> ResizingProcess<R>[src]

pub fn new(process: Process<R>) -> Self[src]

Creates a new ResizingProcess as a wrapper around the given Process instance.

pub fn input(&mut self) -> &mut R[src]

Returns a mutable reference to the input object provided in the inner Process instance's constructor.

Trait Implementations

impl<R: AsyncRead + 'static> Stream for ResizingProcess<R>[src]

type Item = Event

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

Auto Trait Implementations

impl<R> Send for ResizingProcess<R> where
    R: Send

impl<R> !Sync for ResizingProcess<R>

impl<R> Unpin for ResizingProcess<R> where
    R: Unpin

impl<R> !UnwindSafe for ResizingProcess<R>

impl<R> !RefUnwindSafe for ResizingProcess<R>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<St> StreamExt for St where
    St: Stream
[src]

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]