Routine

Trait Routine 

Source
pub trait Routine<Ctx>:
    Send
    + Sync
    + 'static {
    type In: RoutineInput;
    type Out;

    // Required methods
    fn name(&self) -> &str;
    fn run(
        &self,
        input: <<Self as Routine<Ctx>>::In as RoutineInput>::Inner<'_>,
        ctx: &mut Ctx,
    ) -> Result<Self::Out, RuntimeError>;
}

Required Associated Types§

Source

type In: RoutineInput

Source

type Out

Required Methods§

Source

fn name(&self) -> &str

Source

fn run( &self, input: <<Self as Routine<Ctx>>::In as RoutineInput>::Inner<'_>, ctx: &mut Ctx, ) -> Result<Self::Out, RuntimeError>

Implementors§