Trait hotshot::tasks::task_state::CreateTaskState

source ·
pub trait CreateTaskState<TYPES, I, V>
where TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions,
{ // Required method fn create_from<'life0, 'async_trait>( handle: &'life0 SystemContextHandle<TYPES, I, V>, ) -> 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, V>, ) -> 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>, V: Versions> CreateTaskState<TYPES, I, V> for ConsensusTaskState<TYPES, I, V>

source§

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

source§

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

source§

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

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions> CreateTaskState<TYPES, I, V> for QuorumProposalTaskState<TYPES, I, V>

source§

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

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions> CreateTaskState<TYPES, I, V> for QuorumProposalRecvTaskState<TYPES, I, V>

source§

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

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions> CreateTaskState<TYPES, I, V> for QuorumVoteTaskState<TYPES, I, V>

source§

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

source§

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

source§

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

source§

impl<TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions> CreateTaskState<TYPES, I, V> for RewindTaskState<TYPES>

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§