pub trait NonblockReply {
    type F;

    fn send_with_reply(&self, msg: Message, f: Self::F) -> Result<Token, ()>;
    fn cancel_reply(&self, id: Token) -> Option<Self::F>;
    fn make_f<G: FnOnce(Message, &Self) + Send + 'static>(g: G) -> Self::F
    where
        Self: Sized
; fn set_timeout_maker(
        &mut self,
        f: Option<TimeoutMakerCb>
    ) -> Option<TimeoutMakerCb>; fn timeout_maker(&self) -> Option<TimeoutMakerCb>; fn set_waker(&mut self, f: Option<WakerCb>) -> Option<WakerCb>; }
Expand description

Internal helper trait for async method replies.

Required Associated Types

Callback type

Required Methods

Sends a message and calls the callback when a reply is received.

Cancels a pending reply.

Internal helper function that creates a callback.

Set the internal timeout maker

Get the internal timeout maker

Set the wakeup call

Implementors