pupactor

Trait Actor

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

Required Associated Types§

Source

type ShutDown: Send + Sync + 'static + WithStopActor<Self>

Required Methods§

Source

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