pupactor

Trait Handle

Source
pub trait Handle<T>
where Self: Actor,
{ // Required method fn handle(&mut self, value: T) -> impl Into<ActorCommand<Self::ShutDown>>; }

Required Methods§

Source

fn handle(&mut self, value: T) -> impl Into<ActorCommand<Self::ShutDown>>

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> Handle<Infallible> for Act
where Self: Actor + Send + 'static,

Some Listeners have no msg, only shutdown