Trait ActorRun

Source
pub trait ActorRun<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> ActorRun<Ctx> for BoxedRunnable<Ctx>

Source§

impl<Ctx, F> ActorRun<Ctx> for FnOnceRunnable<F>
where F: ActorRunFnOnce<Ctx>,