pub struct ExtError {
pub code: String,
pub message: String,
}Expand description
Why an extension failed a call: a code its caller can tell apart and
a message.
Any error converts into one with the code ExtError::FAILED, so ?
passes on the errors an extension meets; ExtError::new names another
code.
Fields§
§code: String§message: StringImplementations§
Trait Implementations§
impl Eq for ExtError
Source§impl From<ExtError> for ExtFailure
impl From<ExtError> for ExtFailure
impl StructuralPartialEq for ExtError
Auto Trait Implementations§
impl Freeze for ExtError
impl RefUnwindSafe for ExtError
impl Send for ExtError
impl Sync for ExtError
impl Unpin for ExtError
impl UnsafeUnpin for ExtError
impl UnwindSafe for ExtError
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