pub struct QuicClient { /* private fields */ }Expand description
Handles the client side of QUIC address discovery.
Implementations§
Source§impl QuicClient
impl QuicClient
Sourcepub fn new(ep: Endpoint, client_config: ClientConfig) -> Self
pub fn new(ep: Endpoint, client_config: ClientConfig) -> Self
Create a new QuicClient to handle the client side of QUIC address discovery.
Sourcepub async fn create_conn(
&self,
server_addr: SocketAddr,
host: &str,
) -> Result<Connection, Error>
pub async fn create_conn( &self, server_addr: SocketAddr, host: &str, ) -> Result<Connection, Error>
Create a connection usable for qad
Trait Implementations§
Source§impl Clone for QuicClient
impl Clone for QuicClient
Source§fn clone(&self) -> QuicClient
fn clone(&self) -> QuicClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QuicClient
impl !RefUnwindSafe for QuicClient
impl Send for QuicClient
impl Sync for QuicClient
impl Unpin for QuicClient
impl !UnwindSafe for QuicClient
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