Action

Trait Action 

Source
pub trait Action: Send {
    type Context;

    // Required method
    fn act(&self, ctx: &Self::Context) -> Result<()>;
}

Required Associated Types§

Required Methods§

Source

fn act(&self, ctx: &Self::Context) -> Result<()>

Implementors§

Source§

impl<ActionContext, ActionT, F, Cushion> Action for ActionWrapper<ActionContext, ActionT, F, Cushion>
where F: Fn(&Cushion) -> ActionContext + Send, ActionT: Action<Context = ActionContext>, Cushion: Sync + Send,

Source§

type Context = Cushion

Source§

impl<Context, F> Action for ClosureAction<Context, F>
where F: Fn(&Context) -> Result<()> + Send, Context: Sync + Send,

Source§

type Context = Context