pub struct PoolPolicy {
pub max_connections: u32,
pub max_per_origin: u32,
pub max_streams: u32,
pub max_idle: u32,
pub idle_lifetime_ms: u64,
pub max_lifetime_ms: u64,
pub max_uses: u64,
pub on_exhaustion: OnExhaustion,
}Expand description
The hard bounds of a pool (spec 020, 3.5). Every bound is positive;
max_streams is 1 because the HTTP/1.1 binding cannot multiplex.
Fields§
§max_connections: u32§max_per_origin: u32§max_streams: u32§max_idle: u32§idle_lifetime_ms: u64§max_lifetime_ms: u64§max_uses: u64§on_exhaustion: OnExhaustionImplementations§
Trait Implementations§
Source§impl Clone for PoolPolicy
impl Clone for PoolPolicy
impl Copy for PoolPolicy
Source§impl Debug for PoolPolicy
impl Debug for PoolPolicy
impl Eq for PoolPolicy
Source§impl PartialEq for PoolPolicy
impl PartialEq for PoolPolicy
Source§impl Serialize for PoolPolicy
impl Serialize for PoolPolicy
impl StructuralPartialEq for PoolPolicy
Auto Trait Implementations§
impl Freeze for PoolPolicy
impl RefUnwindSafe for PoolPolicy
impl Send for PoolPolicy
impl Sync for PoolPolicy
impl Unpin for PoolPolicy
impl UnsafeUnpin for PoolPolicy
impl UnwindSafe for PoolPolicy
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