SharedSpawnable

Trait SharedSpawnable 

Source
pub trait SharedSpawnable {
    // Required method
    fn spawn<'life0, 'life1, 'life2, 'async_trait, A, C>(
        self,
        cx: &'life0 C,
        actor_name: &'life1 str,
        params: &'life2 A::Params,
    ) -> Pin<Box<dyn Future<Output = Result<RootActorMesh<'static, A>, Error>> + Send + 'async_trait>>
       where A::Params: RemoteMessage,
             C::A: Handler<MeshFailure>,
             A: 'async_trait + RemoteSpawn,
             C: 'async_trait + Actor,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Spawns from shared (Arc) proc meshes, providing [ActorMesh]es with static lifetimes.

Required Methods§

Source

fn spawn<'life0, 'life1, 'life2, 'async_trait, A, C>( self, cx: &'life0 C, actor_name: &'life1 str, params: &'life2 A::Params, ) -> Pin<Box<dyn Future<Output = Result<RootActorMesh<'static, A>, Error>> + Send + 'async_trait>>
where A::Params: RemoteMessage, C::A: Handler<MeshFailure>, A: 'async_trait + RemoteSpawn, C: 'async_trait + Actor, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

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<D: Deref<Target = ProcMesh> + Send + Sync + 'static> SharedSpawnable for D