pub async fn subscribe<T: Message<Result = ()>>(&self) -> Result<()>
    where
        A: Handler<T>,
    {
        let mut broker = Broker::<T>::from_registry().await;
        broker.send(Subscribe {
            id: self.actor_id,
            sender: self.address().sender::<T>(),
        })
    }
/// Subscribes to a message of a specified type.
Subscribes to a message of a specified type.
Subscribes to a message of a specified type .
pub async fn subscribe<T: Message<Result = ()>>(&self) -> Result<()>
    where
        A: Handler<T>,
    {
        let mut broker = Broker::<T>::from_registry().await;
        broker.send(Subscribe {
            id: self.actor_id,
            sender: self.address().sender::<T>(),
        })
    }
pub async fn subscribe < T : Message < Result = ( ) > > ( & self ) -> Result < ( ) > where A : Handler < T > , { let mut broker = Broker :: < T > :: from_registry ( ) . await ; broker . send ( Subscribe { id : self . actor_id , sender : self . address ( ) . sender :: < T > ( ) , } ) }
Subscribes to a message of a specified type.
Subscribes to a message of a specified type .
&self
&self