Trait hyper::client::pool::Poolable

source ·
pub(super) trait Poolable:
    Unpin
    + Send
    + Sized
    + 'static {
    // Required methods
    fn is_open(&self) -> bool;
    fn reserve(self) -> Reservation<Self>;
    fn can_share(&self) -> bool;
}

Required Methods§

source

fn is_open(&self) -> bool

source

fn reserve(self) -> Reservation<Self>

Reserve this connection.

Allows for HTTP/2 to return a shared reservation.

source

fn can_share(&self) -> bool

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<B> Poolable for PoolClient<B>
where B: Send + 'static,