pub trait Reply: Send + Sync {
    type Data;

    fn send(
        &self,
        data: Self::Data
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + '_>>; fn blocking_send(&self, data: Self::Data) -> Result<()>; fn clone_reply(&self) -> Box<dyn Reply<Data = Self::Data>>; }
Expand description

Interface to send a reply to some request

Required Associated Types

Required Methods

Sends a reply out from the server

Blocking version of sending a reply out from the server

Clones this reply

Implementations on Foreign Types

Implementors