pub struct HttpConnectionPool { /* private fields */ }Expand description
Implementations§
Source§impl HttpConnectionPool
impl HttpConnectionPool
Sourcepub fn set_max_idle_connections(&mut self, max_idle_connections: u32)
pub fn set_max_idle_connections(&mut self, max_idle_connections: u32)
Sourcepub fn set_keep_alive_duration(&mut self, keep_alive_duration: Duration)
pub fn set_keep_alive_duration(&mut self, keep_alive_duration: Duration)
Trait Implementations§
Source§impl AsMut<HttpConnectionPool> for HttpConnectionPool
impl AsMut<HttpConnectionPool> for HttpConnectionPool
Source§fn as_mut(&mut self) -> &mut HttpConnectionPool
fn as_mut(&mut self) -> &mut HttpConnectionPool
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl Default for HttpConnectionPool
impl Default for HttpConnectionPool
Source§impl HttpConnectionPool for HttpConnectionPool
impl HttpConnectionPool for HttpConnectionPool
Source§type Identity = DeboaIdentity
type Identity = DeboaIdentity
The identity type.
Source§type Certificate = DeboaCertificate
type Certificate = DeboaCertificate
The certificate type.
Source§type ConnectionDispather = DeboaConnection
type ConnectionDispather = DeboaConnection
The connection dispatcher type.
Source§type ConnectionCache = HashMap<String, DeboaConnection>
type ConnectionCache = HashMap<String, DeboaConnection>
The connection cache type.
Source§fn new(max_idle_connections: u32, keep_alive_duration: Duration) -> Self
fn new(max_idle_connections: u32, keep_alive_duration: Duration) -> Self
Allow create a new connection pool. Read more
Source§fn connections(&self) -> &Self::ConnectionCache
fn connections(&self) -> &Self::ConnectionCache
Allow get connections. Read more
Source§fn connection_count(&self) -> u32
fn connection_count(&self) -> u32
Returns the number of connections. Read more
Source§async fn create_connection<'a, D>(
&mut self,
config: &ConnectionConfig<'a, Self::Identity, Self::Certificate>,
dns_resolver: &D,
) -> Result<&mut DeboaConnection>where
D: DnsResolver,
async fn create_connection<'a, D>(
&mut self,
config: &ConnectionConfig<'a, Self::Identity, Self::Certificate>,
dns_resolver: &D,
) -> Result<&mut DeboaConnection>where
D: DnsResolver,
Allow create a new connection. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for HttpConnectionPool
impl !UnwindSafe for HttpConnectionPool
impl Freeze for HttpConnectionPool
impl Send for HttpConnectionPool
impl Sync for HttpConnectionPool
impl Unpin for HttpConnectionPool
impl UnsafeUnpin for HttpConnectionPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more