pub trait TestTaskState: Send {
type Event: Clone + Send + Sync;
type Error: Display;
// Required methods
fn handle_event<'life0, 'async_trait>(
&'life0 mut self,
__arg1: (Self::Event, usize),
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = TestResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Type for mutable task state that can be used as the state for a Task