Trait sozu_client::Sender

source ·
pub trait Sender {
    type Error;

    // Required methods
    fn send<'life0, 'async_trait>(
        &'life0 self,
        request: RequestType,
    ) -> Pin<Box<dyn Future<Output = Result<Response, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn send_all<'life0, 'life1, 'async_trait>(
        &'life0 self,
        requests: &'life1 [RequestType],
    ) -> Pin<Box<dyn Future<Output = Result<Response, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn send<'life0, 'async_trait>( &'life0 self, request: RequestType, ) -> Pin<Box<dyn Future<Output = Result<Response, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn send_all<'life0, 'life1, 'async_trait>( &'life0 self, requests: &'life1 [RequestType], ) -> Pin<Box<dyn Future<Output = Result<Response, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§