pub enum MockSpawnerError {
WrongNumberOfTasks {
expected: usize,
actual: usize,
},
}Expand description
The errors that are reported by MockSpawner.
Variants§
WrongNumberOfTasks
The MockSpawner::spawn() method was called the wrong number of times.
Fields
§
expected: usizeThe expected number of calls to MockSpawner::spawn().
§
actual: usizeThe actual number of times MockSpawner::spawn() was called.
Trait Implementations§
Source§impl Debug for MockSpawnerError
impl Debug for MockSpawnerError
Source§impl Display for MockSpawnerError
impl Display for MockSpawnerError
Source§impl Error for MockSpawnerError
impl Error for MockSpawnerError
Source§impl ErrorCompat for MockSpawnerError
impl ErrorCompat for MockSpawnerError
Source§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl PartialEq for MockSpawnerError
impl PartialEq for MockSpawnerError
impl StructuralPartialEq for MockSpawnerError
Auto Trait Implementations§
impl Freeze for MockSpawnerError
impl RefUnwindSafe for MockSpawnerError
impl Send for MockSpawnerError
impl Sync for MockSpawnerError
impl Unpin for MockSpawnerError
impl UnsafeUnpin for MockSpawnerError
impl UnwindSafe for MockSpawnerError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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