[][src]Trait cdrs_tokio::cluster::ResponseCache

pub trait ResponseCache {
#[must_use]    fn match_or_cache_response<'life0, 'async_trait>(
        &'life0 self,
        stream_id: StreamId,
        frame: Frame
    ) -> Pin<Box<dyn Future<Output = Option<Frame>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

ResponseCache caches responses to match them by their stream id to requests.

Required methods

#[must_use]fn match_or_cache_response<'life0, 'async_trait>(
    &'life0 self,
    stream_id: StreamId,
    frame: Frame
) -> Pin<Box<dyn Future<Output = Option<Frame>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<LB> ResponseCache for Session<LB> where
    LB: Send
[src]

Loading content...