pub struct Failed { /* private fields */ }
Expand description
Generic error to be raised when something goes wrong.
Implementations§
source§impl Failed
impl Failed
sourcepub fn error(&self) -> FailedError
pub fn error(&self) -> FailedError
get type of error
sourcepub fn because(err: FailedError, msg: &str) -> Self
pub fn because(err: FailedError, msg: &str) -> Self
new instance of err
Trait Implementations§
source§impl Error for Failed
impl Error for Failed
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()
Auto Trait Implementations§
impl RefUnwindSafe for Failed
impl Send for Failed
impl Sync for Failed
impl Unpin for Failed
impl UnwindSafe for Failed
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