pub trait SharedSpawnable {
// Required method
fn spawn<'life0, 'life1, 'async_trait, A>(
self,
actor_name: &'life0 str,
params: &'life1 A::Params,
) -> Pin<Box<dyn Future<Output = Result<RootActorMesh<'static, A>, Error>> + Send + 'async_trait>>
where A::Params: RemoteMessage,
A: 'async_trait + Actor + RemoteActor,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Spawns from shared (Arc
) proc meshes, providing [ActorMesh
]es with
static lifetimes.
Required Methods§
fn spawn<'life0, 'life1, 'async_trait, A>(
self,
actor_name: &'life0 str,
params: &'life1 A::Params,
) -> Pin<Box<dyn Future<Output = Result<RootActorMesh<'static, A>, Error>> + Send + 'async_trait>>where
A::Params: RemoteMessage,
A: 'async_trait + Actor + RemoteActor,
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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.