mm1_node::runtime::runnable

Trait ActorRunBoxed

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

Required Methods§

Source

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

Implementors§

Source§

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