pub struct ArcedQuicClientConfig(/* private fields */);Expand description
An arc-wrapped, type-erased QUIC client config (endpoint factory).
Created via Client::new_with_quic, which
binds the connector’s runtime into the wrapper before erasure.
Implementations§
Source§impl ArcedQuicClientConfig
impl ArcedQuicClientConfig
Sourcepub fn new<C: Connector, Q: QuicClientConfig<C>>(
connector: &C,
config: Q,
) -> Self
pub fn new<C: Connector, Q: QuicClientConfig<C>>( connector: &C, config: Q, ) -> Self
Binds config to the runtime from connector and wraps the result for type erasure.
Sourcepub fn bind(&self, addr: SocketAddr) -> Result<ArcedQuicEndpoint>
pub fn bind(&self, addr: SocketAddr) -> Result<ArcedQuicEndpoint>
Create a type-erased QUIC endpoint bound to the given local address.
Trait Implementations§
Source§impl Clone for ArcedQuicClientConfig
impl Clone for ArcedQuicClientConfig
Source§fn clone(&self) -> ArcedQuicClientConfig
fn clone(&self) -> ArcedQuicClientConfig
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 ArcedQuicClientConfig
impl !RefUnwindSafe for ArcedQuicClientConfig
impl Send for ArcedQuicClientConfig
impl Sync for ArcedQuicClientConfig
impl Unpin for ArcedQuicClientConfig
impl UnsafeUnpin for ArcedQuicClientConfig
impl !UnwindSafe for ArcedQuicClientConfig
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