pub struct FixtureError { /* private fields */ }
Expand description
Failure when initializing the fixture.
Implementations§
Source§impl FixtureError
impl FixtureError
Sourcepub fn new(kind: FixtureKind) -> Self
pub fn new(kind: FixtureKind) -> Self
Create a FixtureError
.
Sourcepub fn with_source(
self,
source: impl Into<Box<dyn Error + Send + Sync + 'static>>,
) -> Self
pub fn with_source( self, source: impl Into<Box<dyn Error + Send + Sync + 'static>>, ) -> Self
Attach a source to the error.
Sourcepub fn kind(&self) -> FixtureKind
pub fn kind(&self) -> FixtureKind
Return the fixture initialization cause.
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 description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for FixtureError
impl !RefUnwindSafe for FixtureError
impl Send for FixtureError
impl Sync for FixtureError
impl Unpin for FixtureError
impl !UnwindSafe 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