pub trait ResponseHandler: Clone + Send + Sync + Unpin + 'static {
    fn send_response<'a, 'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        response: MessageResponse<'life1, 'a, impl Iterator<Item = &'a Record> + Send + 'a, impl Iterator<Item = &'a Record> + Send + 'a, impl Iterator<Item = &'a Record> + Send + 'a, impl Iterator<Item = &'a Record> + Send + 'a>
    ) -> Pin<Box<dyn Future<Output = Result<ResponseInfo>> + Send + 'async_trait>>
    where
        'a: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

A handler for send a response to a client

Required methods

Serializes and sends a message to to the wrapped handle

self is consumed as only one message should ever be sent in response to a Request

Implementors