pub struct MockFailure;Available on crate feature
test-utils only.Expand description
Error type for MockFailingTool, carrying a fixed message.
Trait Implementations§
Source§impl Debug for MockFailure
impl Debug for MockFailure
Source§impl Display for MockFailure
impl Display for MockFailure
Source§impl Error for MockFailure
impl Error for MockFailure
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 Freeze for MockFailure
impl RefUnwindSafe for MockFailure
impl Send for MockFailure
impl Sync for MockFailure
impl Unpin for MockFailure
impl UnsafeUnpin for MockFailure
impl UnwindSafe for MockFailure
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