Struct subprocess::CommunicateError
source · [−]Expand description
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.
Implementations
Trait Implementations
sourceimpl Debug for CommunicateError
impl Debug for CommunicateError
sourceimpl Display for CommunicateError
impl Display for CommunicateError
sourceimpl Error for CommunicateError
impl Error for CommunicateError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<CommunicateError> for PopenError
impl From<CommunicateError> for PopenError
sourcefn from(err: CommunicateError) -> PopenError
fn from(err: CommunicateError) -> PopenError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for CommunicateError
impl Send for CommunicateError
impl Sync for CommunicateError
impl Unpin for CommunicateError
impl !UnwindSafe for CommunicateError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more