pub fn caller<T: Message>(&self) -> Caller<T>
    where
        A: Handler<T>,
    {
        let addr = self.clone();
        Caller(Box::new(move |msg| {
            let mut addr = addr.clone();
            Box::pin(async move { addr.call(msg).await })
        }))
    }
/// Create a `Caller<T>` for a specific message type
Create a `Caller` for a specific message type
Create a ` Caller ` for a specific message type
pub fn caller<T: Message>(&self) -> Caller<T>
    where
        A: Handler<T>,
    {
        let addr = self.clone();
        Caller(Box::new(move |msg| {
            let mut addr = addr.clone();
            Box::pin(async move { addr.call(msg).await })
        }))
    }
pub fn caller < T : Message > ( & self ) -> Caller < T > where A : Handler < T > , { let addr = self . clone ( ) ; Caller ( Box :: new ( move | msg | { let mut addr = addr . clone ( ) ; Box :: pin ( async move { addr . call ( msg ) . await } ) } ) ) }
Create a `Caller<T>` for a specific message type
Create a ` Caller<T > ` for a specific message type
&self
&self