Query

Trait Query 

Source
pub trait Query: Action {
    type Output;

    // Required method
    async fn recv(self, target: ActorId) -> Result<Self::Output>;
}

Required Associated Types§

Required Methods§

Source

async fn recv(self, target: ActorId) -> Result<Self::Output>

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.

Implementors§

Source§

impl<TRemoting, TActionIo> Query for RemotingAction<TRemoting, TActionIo>
where TRemoting: Remoting, TActionIo: ActionIo,

Source§

type Output = <TActionIo as ActionIo>::Reply