pub struct H2PoolKey {
pub endpoint_host: String,
pub endpoint_port: u16,
pub use_tls: bool,
pub server_name: Option<String>,
pub auth_hash: Option<u64>,
pub hop_index: usize,
}Expand description
Pool key identifying a unique H2 upstream connection group.
Includes hop_index to prevent cross-chain pooling: when the same
upstream endpoint appears at different positions in distinct chains,
connections must not be shared because the preceding hops differ.
Fields§
§endpoint_host: String§endpoint_port: u16§use_tls: bool§server_name: Option<String>§auth_hash: Option<u64>§hop_index: usizeImplementations§
Trait Implementations§
impl Eq for H2PoolKey
impl StructuralPartialEq for H2PoolKey
Auto Trait Implementations§
impl Freeze for H2PoolKey
impl RefUnwindSafe for H2PoolKey
impl Send for H2PoolKey
impl Sync for H2PoolKey
impl Unpin for H2PoolKey
impl UnsafeUnpin for H2PoolKey
impl UnwindSafe for H2PoolKey
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.