Trait coerce::actor::IntoActor

source ·
pub trait IntoActor: Actor + Sized {
    // Required methods
    fn into_actor<'a, 'life0, 'async_trait, I>(
        self,
        id: Option<I>,
        sys: &'life0 ActorSystem
    ) -> Pin<Box<dyn Future<Output = Result<LocalActorRef<Self>, ActorRefErr>> + Send + 'async_trait>>
       where I: 'async_trait + 'a + IntoActorId + Send,
             Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn into_anon_actor<'a, 'life0, 'async_trait, I>(
        self,
        id: Option<I>,
        sys: &'life0 ActorSystem
    ) -> Pin<Box<dyn Future<Output = Result<LocalActorRef<Self>, ActorRefErr>> + Send + 'async_trait>>
       where I: 'async_trait + 'a + IntoActorId + Send,
             Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait allowing the creation of an Actor directly from itself

Required Methods§

source

fn into_actor<'a, 'life0, 'async_trait, I>( self, id: Option<I>, sys: &'life0 ActorSystem ) -> Pin<Box<dyn Future<Output = Result<LocalActorRef<Self>, ActorRefErr>> + Send + 'async_trait>>where I: 'async_trait + 'a + IntoActorId + Send, Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

source

fn into_anon_actor<'a, 'life0, 'async_trait, I>( self, id: Option<I>, sys: &'life0 ActorSystem ) -> Pin<Box<dyn Future<Output = Result<LocalActorRef<Self>, ActorRefErr>> + Send + 'async_trait>>where I: 'async_trait + 'a + IntoActorId + Send, Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<A: Actor> IntoActor for A