pub struct FixtureError { /* private fields */ }Expand description
Failure raised by fixture setup or out-of-band observation.
§Examples
use qubit_fs_testkit::FixtureError;
let error = FixtureError::new("independent read setup unavailable");
assert_eq!(error.to_string(), "independent read setup unavailable");Implementations§
Trait Implementations§
Source§impl Debug for FixtureError
impl Debug for FixtureError
Source§impl Display for FixtureError
impl Display for FixtureError
Source§impl Error for FixtureError
impl Error for FixtureError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the preserved fixture failure, when one was supplied.
§Returns
Some(source) when created by Self::with_source, or None when
created by Self::new.
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 FixtureError
impl !UnwindSafe for FixtureError
impl Forget for FixtureError
impl Freeze for FixtureError
impl Move for FixtureError
impl Send for FixtureError
impl Sync for FixtureError
impl Unpin for FixtureError
impl UnsafeUnpin for FixtureError
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