pub struct Disappoint { /* private fields */ }
Expand description
A struct providing information about a disappointing expectation.
Implementations§
Source§impl Disappoint
impl Disappoint
Sourcepub fn payload(&self) -> &(dyn Any + Send + 'static)
pub fn payload(&self) -> &(dyn Any + Send + 'static)
Return the payload associated with the disappointment.
The concrete type of payloads is commonly either of &'static str
or String
, but it may change in the future version.
Trait Implementations§
Source§impl Debug for Disappoint
impl Debug for Disappoint
Auto Trait Implementations§
impl Freeze for Disappoint
impl !RefUnwindSafe for Disappoint
impl Send for Disappoint
impl !Sync for Disappoint
impl Unpin for Disappoint
impl !UnwindSafe for Disappoint
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