Call

Trait Call 

Source
pub trait Call: Action {
    type Output;

    // Required method
    async fn send(
        self,
        target: ActorId,
    ) -> Result<impl Reply<Output = Self::Output>>;

    // Provided method
    async fn send_recv(self, target: ActorId) -> Result<Self::Output>
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

Source

async fn send( self, target: ActorId, ) -> Result<impl Reply<Output = Self::Output>>

Provided Methods§

Source

async fn send_recv(self, target: ActorId) -> Result<Self::Output>
where Self: Sized,

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> Call for RemotingAction<TRemoting, TActionIo>
where TRemoting: Remoting, TActionIo: ActionIo,

Source§

type Output = <TActionIo as ActionIo>::Reply