mm1_node::runtime::runnable

Trait ActorRunFnOnce

Source
pub trait ActorRunFnOnce<Ctx> {
    // Required method
    fn run<'run>(
        self,
        context: &'run mut Ctx,
    ) -> impl Future<Output = Never> + Send + 'run
       where Self: Sized + 'run;
}

Required Methods§

Source

fn run<'run>( self, context: &'run mut Ctx, ) -> impl Future<Output = Never> + Send + 'run
where Self: Sized + 'run,

Implementors§

Source§

impl<Ctx, Func> ActorRunFnOnce<Ctx> for Func
where Func: ActorFunc<Ctx> + Send, Ctx: Send + Sync,