pub struct IoError(_);
Expand description
A variant of std::io::Error
that implements Trackable
trait.
Methods from Deref<Target = TrackableError<ErrorKind>>§
sourcepub fn concrete_cause<T>(&self) -> Option<&T>where
T: Error + 'static,
pub fn concrete_cause<T>(&self) -> Option<&T>where T: Error + 'static,
Tries to return the cause of this error as a value of T
type.
If neither this error has a cause nor it is an T
value,
this method will return None
.
Trait Implementations§
source§impl Error for IoError
impl Error for IoError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<TrackableError<ErrorKind>> for IoError
impl From<TrackableError<ErrorKind>> for IoError
source§fn from(f: TrackableError<ErrorKind>) -> Self
fn from(f: TrackableError<ErrorKind>) -> Self
Converts to this type from the input type.
source§impl Trackable for IoError
impl Trackable for IoError
source§fn history(&self) -> Option<&History<Self::Event>>
fn history(&self) -> Option<&History<Self::Event>>
Returns the reference of the tracking history of this instance. Read more
source§fn history_mut(&mut self) -> Option<&mut History<Self::Event>>
fn history_mut(&mut self) -> Option<&mut History<Self::Event>>
Returns the mutable reference of the tracking history of this instance. Read more
source§fn track<F>(&mut self, f: F)where
F: FnOnce() -> Self::Event,
fn track<F>(&mut self, f: F)where F: FnOnce() -> Self::Event,
Add an event into the tail of the history of this instance. Read more
source§fn in_tracking(&self) -> bool
fn in_tracking(&self) -> bool
Returns
true
if it is being tracked, otherwise false
.Auto Trait Implementations§
impl !RefUnwindSafe for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl !UnwindSafe for IoError
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