Trait AccessorTask

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

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

Required Methods§

Source

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

Run the task.

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.

Implementors§