Trait Actor

Source
pub trait Actor
where Self: Sized + Send + Sync + 'static,
{ type Cmd: Send + Sync + 'static; // Required method fn infinite_loop( &mut self, ) -> impl Future<Output = Result<Self::Cmd, Break>> + Send; }

Required Associated Types§

Source

type Cmd: Send + Sync + 'static

Required Methods§

Source

fn infinite_loop( &mut self, ) -> impl Future<Output = Result<Self::Cmd, Break>> + 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§