pub trait CreateTaskState<TYPES, I>
where TYPES: NodeType, I: NodeImplementation<TYPES>,
{ // Required method fn create_from<'life0, 'async_trait>( handle: &'life0 SystemContextHandle<TYPES, I> ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }
Expand description

Trait for creating task states.

Required Methods§

source

fn create_from<'life0, 'async_trait>( handle: &'life0 SystemContextHandle<TYPES, I> ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Function to create the task state from a given SystemContextHandle.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>> CreateTaskState<TYPES, I> for ConsensusTaskState<TYPES, I>

source§

fn create_from<'life0, 'async_trait>( handle: &'life0 SystemContextHandle<TYPES, I> ) -> Pin<Box<dyn Future<Output = ConsensusTaskState<TYPES, I>> + Send + 'async_trait>>
where 'life0: 'async_trait,

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>> CreateTaskState<TYPES, I> for DaTaskState<TYPES, I>

source§

fn create_from<'life0, 'async_trait>( handle: &'life0 SystemContextHandle<TYPES, I> ) -> Pin<Box<dyn Future<Output = DaTaskState<TYPES, I>> + Send + 'async_trait>>
where 'life0: 'async_trait,

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>> CreateTaskState<TYPES, I> for NetworkRequestState<TYPES, I>

source§

fn create_from<'life0, 'async_trait>( handle: &'life0 SystemContextHandle<TYPES, I> ) -> Pin<Box<dyn Future<Output = NetworkRequestState<TYPES, I>> + Send + 'async_trait>>
where 'life0: 'async_trait,

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>> CreateTaskState<TYPES, I> for TransactionTaskState<TYPES, I>

source§

fn create_from<'life0, 'async_trait>( handle: &'life0 SystemContextHandle<TYPES, I> ) -> Pin<Box<dyn Future<Output = TransactionTaskState<TYPES, I>> + Send + 'async_trait>>
where 'life0: 'async_trait,

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>> CreateTaskState<TYPES, I> for UpgradeTaskState<TYPES, I>

source§

fn create_from<'life0, 'async_trait>( handle: &'life0 SystemContextHandle<TYPES, I> ) -> Pin<Box<dyn Future<Output = UpgradeTaskState<TYPES, I>> + Send + 'async_trait>>
where 'life0: 'async_trait,

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>> CreateTaskState<TYPES, I> for VidTaskState<TYPES, I>

source§

fn create_from<'life0, 'async_trait>( handle: &'life0 SystemContextHandle<TYPES, I> ) -> Pin<Box<dyn Future<Output = VidTaskState<TYPES, I>> + Send + 'async_trait>>
where 'life0: 'async_trait,

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>> CreateTaskState<TYPES, I> for ViewSyncTaskState<TYPES, I>

source§

fn create_from<'life0, 'async_trait>( handle: &'life0 SystemContextHandle<TYPES, I> ) -> Pin<Box<dyn Future<Output = ViewSyncTaskState<TYPES, I>> + Send + 'async_trait>>
where 'life0: 'async_trait,

Implementors§