[][src]Struct subprocess::CommunicateError

pub struct CommunicateError {
    pub error: Error,
    pub capture: (Option<Vec<u8>>, Option<Vec<u8>>),
}

Error during communication.

It holds the underlying io::Error in the error field, and also provides the data captured before the error was encountered in the capture field.

The error description and cause are taken from the underlying IO error.

Fields

error: Error

The underlying io::Error.

capture: (Option<Vec<u8>>, Option<Vec<u8>>)

The data captured before the error was encountered.

Methods

impl CommunicateError[src]

pub fn kind(&self) -> ErrorKind[src]

Returns the corresponding IO ErrorKind for this error.

Equivalent to self.error.kind().

Trait Implementations

impl Debug for CommunicateError[src]

impl Display for CommunicateError[src]

impl Error for CommunicateError[src]

impl From<CommunicateError> for PopenError[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[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.