pub struct ClientPool { /* private fields */ }Expand description
Reuses native QUIC endpoints across sessions with the same certificate policy.
Implementations§
Source§impl ClientPool
impl ClientPool
Sourcepub fn new() -> ClientPool
pub fn new() -> ClientPool
Creates an empty native WebTransport client pool.
Sourcepub async fn dial(
&self,
url: &str,
cert_hash: Option<[u8; 32]>,
) -> Result<(Pin<Box<dyn TransportPipe<Error = TransportError, Item = Result<Bytes, TransportError>> + Send>>, bool, Arc<ConnectionStreams>), TransportError>
pub async fn dial( &self, url: &str, cert_hash: Option<[u8; 32]>, ) -> Result<(Pin<Box<dyn TransportPipe<Error = TransportError, Item = Result<Bytes, TransportError>> + Send>>, bool, Arc<ConnectionStreams>), TransportError>
Opens a session while reusing the matching native QUIC endpoint.
Trait Implementations§
Source§impl Default for ClientPool
impl Default for ClientPool
Source§fn default() -> ClientPool
fn default() -> ClientPool
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ClientPool
impl RefUnwindSafe for ClientPool
impl Send for ClientPool
impl Sync for ClientPool
impl Unpin for ClientPool
impl UnsafeUnpin for ClientPool
impl UnwindSafe for ClientPool
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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