pub struct CommunicateError {
pub error: Error,
pub capture: (Option<Vec<u8>>, Option<Vec<u8>>),
}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: ErrorThe underlying io::Error.
capture: (Option<Vec<u8>>, Option<Vec<u8>>)The data captured before the error was encountered.
Implementations§
Trait Implementations§
Source§impl Debug for CommunicateError
impl Debug for CommunicateError
Source§impl Display for CommunicateError
impl Display for CommunicateError
Source§impl Error for CommunicateError
impl Error for CommunicateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CommunicateError> for PopenError
impl From<CommunicateError> for PopenError
Source§fn from(err: CommunicateError) -> PopenError
fn from(err: CommunicateError) -> PopenError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommunicateError
impl !RefUnwindSafe for CommunicateError
impl Send for CommunicateError
impl Sync for CommunicateError
impl Unpin for CommunicateError
impl !UnwindSafe for CommunicateError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more