Trait WithInitActor

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

Required Methods§

Source

fn init_actor(self) -> impl Future<Output = Option<Act>> + 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, Init> WithInitActor<Act> for Init
where Act: Actor + InitActor<Init> + Send + Sync + 'static + Sized, Init: Send + Sync + 'static,