pub struct IoFault {
pub source: &'static str,
pub code: Option<ErrorCode>,
pub error: Arc<Error>,
}Expand description
A fault, as the layer that observed it reported it (DI-D-50): what failed an operation or a commit, relayed with where it came from.
Two faults are equal when they name the same source and code and carry the same report – the
one shared Arc, as a marking and the completion it records share it – since an io::Error
has no equality of its own.
Fields§
§source: &'static strThe layer that reported it: "windows-ioring" for dioring over Windows.
code: Option<ErrorCode>The layer’s code for it, where it gives one. Its meaning is the source’s: an HRESULT from
the Windows backend, which always gives one.
error: Arc<Error>The layer’s own report.
Trait Implementations§
impl Eq for IoFault
Source§impl Error for IoFault
So a driver can hand a fault to a consumer as the source of an io::Error that downcasts
back to it, as a RefusalCause does.
impl Error for IoFault
So a driver can hand a fault to a consumer as the source of an io::Error that downcasts
back to it, as a RefusalCause does.
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 !RefUnwindSafe for IoFault
impl !UnwindSafe for IoFault
impl Freeze for IoFault
impl Send for IoFault
impl Sync for IoFault
impl Unpin for IoFault
impl UnsafeUnpin for IoFault
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