Ask

Trait Ask 

Source
pub trait Ask: Messaging + Sized {
    // Required method
    fn ask<Rq, Rs>(
        &mut self,
        server: Address,
        request: Rq,
        timeout: Duration,
    ) -> impl Future<Output = Result<Rs, ErrorOf<AskErrorKind>>> + Send
       where Self: Fork,
             Rq: Send,
             Request<Rq>: Message,
             Rs: Message;
}

Required Methods§

Source

fn ask<Rq, Rs>( &mut self, server: Address, request: Rq, timeout: Duration, ) -> impl Future<Output = Result<Rs, ErrorOf<AskErrorKind>>> + Send
where Self: Fork, Rq: Send, Request<Rq>: Message, Rs: Message,

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<Ctx> Ask for Ctx
where Ctx: Messaging + Sized + Send,