AnyTestTaskState

Type Alias AnyTestTaskState 

Source
pub type AnyTestTaskState<TYPES> = Box<dyn TestTaskState<Event = Event<TYPES>, Error = Error> + Send + Sync>;
Expand description

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

Aliased Type§

pub 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§

type Error = Error

Type of error produced by the task
Source§

fn handle_event<'life0, 'async_trait>( &'life0 mut self, event: (Self::Event, usize), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 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.