Type Alias hotshot_testing::test_task::AnyTestTaskState

source ·
pub type AnyTestTaskState<TYPES> = Box<dyn TestTaskState<Event = Event<TYPES>> + Send + Sync>;
Expand description

Type alias for type-erased TestTaskState to be used for dynamic dispatch

Aliased Type§

struct AnyTestTaskState<TYPES>(/* private fields */);

Trait Implementations§

source§

impl<TYPES: NodeType> TestTaskState for AnyTestTaskState<TYPES>

source§

type Event = Event<TYPES>

Type of event sent and received by the task
source§

fn handle_event<'life0, 'async_trait>( &'life0 mut self, event: (Self::Event, usize), ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handles an event from one of multiple receivers.
source§

fn check<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = TestResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check the result of the test.