Enum test_panic::TestPanicResult
source · pub enum TestPanicResult<R> {
Cool(R),
Panic(Box<dyn Any + Send>),
}Expand description
Result of test_panic function.
Variants§
Cool(R)
No panic result. Contains callback function result.
Panic(Box<dyn Any + Send>)
Panic result. Contains panic payload.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<R> !RefUnwindSafe for TestPanicResult<R>
impl<R> Send for TestPanicResult<R>where R: Send,
impl<R> !Sync for TestPanicResult<R>
impl<R> Unpin for TestPanicResult<R>where R: Unpin,
impl<R> !UnwindSafe for TestPanicResult<R>
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