pub struct Error<Data: Debug = ()> { /* private fields */ }
Expand description
An UEFI-related error with optionally additional payload data. The error
kind is encoded in the status
field (see Status
). Additional payload
may be inside the data
field.
Implementations§
Trait Implementations§
source§impl<Data: Debug> Error for Error<Data>
Available on crate feature unstable
only.
impl<Data: Debug> Error for Error<Data>
Available on crate feature
unstable
only.1.30.0 · 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<Data: PartialEq + Debug> PartialEq for Error<Data>
impl<Data: PartialEq + Debug> PartialEq for Error<Data>
impl<Data: Eq + Debug> Eq for Error<Data>
impl<Data: Debug> StructuralPartialEq for Error<Data>
Auto Trait Implementations§
impl<Data> Freeze for Error<Data>where
Data: Freeze,
impl<Data> RefUnwindSafe for Error<Data>where
Data: RefUnwindSafe,
impl<Data> Send for Error<Data>where
Data: Send,
impl<Data> Sync for Error<Data>where
Data: Sync,
impl<Data> Unpin for Error<Data>where
Data: Unpin,
impl<Data> UnwindSafe for Error<Data>where
Data: UnwindSafe,
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