pub trait SharedSpawnable {
// Required method
fn spawn<'life0, 'life1, 'life2, 'async_trait, A>(
self,
cx: &'life0 (impl 'async_trait + Actor),
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,
A: 'async_trait + Actor + Referable,
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§
fn spawn<'life0, 'life1, 'life2, 'async_trait, A>(
self,
cx: &'life0 (impl 'async_trait + Actor),
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,
A: 'async_trait + Actor + Referable,
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.