Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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 StatsTaskState<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, 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, 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 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§