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§
sourcefn 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,
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.