Skip to main content

AccessorTask

Trait AccessorTask 

Source
pub trait AccessorTask<T, D = HasSelf<T>>: Send + 'static
where D: HasData + ?Sized,
{ // Required method fn run( self, accessor: &Accessor<T, D>, ) -> impl Future<Output = Result<()>> + Send; }
Available on crate features component-model-async and component-model and runtime only.
Expand description

Represents a task which may be provided to Accessor::spawn, Accessor::forward, or StorecContextMut::spawn.

Required Methods§

Source

fn run( self, accessor: &Accessor<T, D>, ) -> impl Future<Output = Result<()>> + Send

Run the task.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§