pub struct SelfTestFailure;Expand description
Marker returned by a failing SelfTest::run.
Self-tests are allowed to describe what failed, but they are not
allowed to exfiltrate the intermediate values that triggered the
failure — including them in an error payload would potentially leak
information about internal state. The runner treats the mere
presence of this value as “test failed” and converts it into
Error::SelfTestFailed using the test’s own SelfTest::NAME.
Trait Implementations§
Source§impl Clone for SelfTestFailure
impl Clone for SelfTestFailure
Source§fn clone(&self) -> SelfTestFailure
fn clone(&self) -> SelfTestFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelfTestFailure
Source§impl Debug for SelfTestFailure
impl Debug for SelfTestFailure
Source§impl Display for SelfTestFailure
impl Display for SelfTestFailure
impl Eq for SelfTestFailure
Source§impl PartialEq for SelfTestFailure
impl PartialEq for SelfTestFailure
impl StructuralPartialEq for SelfTestFailure
Auto Trait Implementations§
impl Freeze for SelfTestFailure
impl RefUnwindSafe for SelfTestFailure
impl Send for SelfTestFailure
impl Sync for SelfTestFailure
impl Unpin for SelfTestFailure
impl UnsafeUnpin for SelfTestFailure
impl UnwindSafe for SelfTestFailure
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