pub struct WrappedError { /* private fields */ }
Expand description
Custom I/O Error which adds context information to the original
Implementations§
Source§impl WrappedError
impl WrappedError
Sourcepub fn into_inner(self) -> Option<Box<dyn Error>>
pub fn into_inner(self) -> Option<Box<dyn Error>>
Consume the error, returning the internal error if any
Sourcepub fn get_io_error(&self) -> Option<&Error>
pub fn get_io_error(&self) -> Option<&Error>
Get the inner io::error if any
Trait Implementations§
Source§impl Debug for WrappedError
impl Debug for WrappedError
Source§impl Default for WrappedError
impl Default for WrappedError
Source§fn default() -> WrappedError
fn default() -> WrappedError
Returns the “default value” for a type. Read more
Source§impl Display for WrappedError
impl Display for WrappedError
Source§impl Error for WrappedError
impl Error for WrappedError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for WrappedError
impl !RefUnwindSafe for WrappedError
impl Send for WrappedError
impl Sync for WrappedError
impl Unpin for WrappedError
impl !UnwindSafe for WrappedError
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