pub struct Classification<'a> { /* private fields */ }Expand description
A semantic class together with the concrete error which established it.
Implementations§
Source§impl<'a> Classification<'a>
impl<'a> Classification<'a>
Sourcepub fn error(&self) -> &'a (dyn Error + 'static)
pub fn error(&self) -> &'a (dyn Error + 'static)
Return the concrete error which established the classification.
A source-bearing crate::ClassificationMarker identifies its wrapped error. A class-only marker
supplied through a native source() identifies the error that owns it.
A standalone marker without an identifiable subject retains the marker itself as a fallback.
Sourcepub fn io_kind(&self) -> Option<ErrorKind>
pub fn io_kind(&self) -> Option<ErrorKind>
Return the original I/O error kind, if the underlying error is an std::io::Error.
Trait Implementations§
Source§impl<'a> Clone for Classification<'a>
impl<'a> Clone for Classification<'a>
impl<'a> Copy for Classification<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Classification<'a>
impl<'a> !Send for Classification<'a>
impl<'a> !Sync for Classification<'a>
impl<'a> !UnwindSafe for Classification<'a>
impl<'a> Freeze for Classification<'a>
impl<'a> Unpin for Classification<'a>
impl<'a> UnsafeUnpin for Classification<'a>
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