Struct http_problem::prelude::AssertionError
source · [−]pub struct AssertionError { /* private fields */ }
Expand description
An error emitted when an assertion failed to be satisfied.
Emitted by ensure!
.
Implementations
sourceimpl AssertionError
impl AssertionError
Trait Implementations
sourceimpl Clone for AssertionError
impl Clone for AssertionError
sourcefn clone(&self) -> AssertionError
fn clone(&self) -> AssertionError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AssertionError
impl Debug for AssertionError
sourceimpl Display for AssertionError
impl Display for AssertionError
sourceimpl Error for AssertionError
impl Error for AssertionError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<AssertionError> for Problem
impl From<AssertionError> for Problem
sourcefn from(err: AssertionError) -> Self
fn from(err: AssertionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for AssertionError
impl Send for AssertionError
impl Sync for AssertionError
impl Unpin for AssertionError
impl UnwindSafe for AssertionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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