pupactor

Trait InitActor

Source
pub trait InitActor<Init>: Sized
where Self: Actor + Send + Sync + 'static, Init: Send + Sync + 'static,
{ // Required method fn init_actor(init: Init) -> impl Future<Output = Option<Self>> + Send; }

Required Methods§

Source

fn init_actor(init: Init) -> 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> InitActor<Act> for Act
where Act: Actor + Send + Sync + 'static,

When Init == Act