pub struct MbrError {
pub cause: ErrorCause,
}
Expand description
A general error thrown by the mbr-nostd
crate.
Fields
cause: ErrorCause
The cause of the error, including cause-specific metadata.
Implementations
sourceimpl MbrError
impl MbrError
sourcepub fn from_cause(cause: ErrorCause) -> MbrError
pub fn from_cause(cause: ErrorCause) -> MbrError
Creates a new error from a particular cause.
Trait Implementations
impl Copy for MbrError
impl Eq for MbrError
impl StructuralEq for MbrError
impl StructuralPartialEq for MbrError
Auto Trait Implementations
impl RefUnwindSafe for MbrError
impl Send for MbrError
impl Sync for MbrError
impl Unpin for MbrError
impl UnwindSafe for MbrError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more