Trait Ask

Source
pub trait Ask:
    Tell
    + Fork
    + Recv {
    // Provided method
    fn ask<Req>(
        &mut self,
        to: Address,
        make_request: impl FnOnce(Address) -> Req + Send,
    ) -> impl Future<Output = Result<Envelope, ErrorOf<AskErrorKind>>> + Send
       where Req: Message { ... }
}

Provided Methods§

Source

fn ask<Req>( &mut self, to: Address, make_request: impl FnOnce(Address) -> Req + Send, ) -> impl Future<Output = Result<Envelope, ErrorOf<AskErrorKind>>> + Send
where Req: 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<T> Ask for T
where T: Tell + Fork + Recv,