Trait ApplyCmd

Source
pub trait ApplyCmd<Cmd>
where Self: Actor,
{ // Required method fn apply_cmd(self, cmd: Cmd) -> impl Future<Output = Option<Self>> + Send; }

Required Methods§

Source

fn apply_cmd(self, cmd: Cmd) -> impl Future<Output = Option<Self>> + 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> ApplyCmd<Infallible> for Act
where Act: Actor + Send,