Trait hotshot_testing::test_task::TestTaskState
source · pub trait TestTaskState: Send {
type Event: Clone + Send + Sync;
// Required methods
fn handle_event<'life0, 'async_trait>(
&'life0 mut self,
__arg1: (Self::Event, usize),
) -> Pin<Box<dyn Future<Output = Result<()>> + 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