Trait WithApplyCmd

Source
pub trait WithApplyCmd<Act: Actor> {
    // Required method
    fn apply_cmd(self, actor: Act) -> impl Future<Output = Option<Act>> + Send;
}

Required Methods§

Source

fn apply_cmd(self, actor: Act) -> impl Future<Output = Option<Act>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Act, Cmd> WithApplyCmd<Act> for Cmd
where Act: Actor + ApplyCmd<Cmd>,