pub struct ArcedQuicEndpoint(/* private fields */);Expand description
A type-erased QUIC endpoint, equivalent to Arc<dyn QuicEndpoint>.
Cheaply cloneable.
Implementations§
Source§impl ArcedQuicEndpoint
impl ArcedQuicEndpoint
Sourcepub async fn accept(&self) -> Option<QuicConnection>
pub async fn accept(&self) -> Option<QuicConnection>
Accept the next inbound QUIC connection.
Sourcepub async fn connect(
&self,
addr: SocketAddr,
server_name: &str,
) -> Result<QuicConnection>
pub async fn connect( &self, addr: SocketAddr, server_name: &str, ) -> Result<QuicConnection>
Initiate a QUIC connection to the given address.
Trait Implementations§
Source§impl Clone for ArcedQuicEndpoint
impl Clone for ArcedQuicEndpoint
Source§fn clone(&self) -> ArcedQuicEndpoint
fn clone(&self) -> ArcedQuicEndpoint
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 moreSource§impl Debug for ArcedQuicEndpoint
impl Debug for ArcedQuicEndpoint
Source§impl<T: QuicEndpoint> From<T> for ArcedQuicEndpoint
impl<T: QuicEndpoint> From<T> for ArcedQuicEndpoint
Auto Trait Implementations§
impl Freeze for ArcedQuicEndpoint
impl !RefUnwindSafe for ArcedQuicEndpoint
impl Send for ArcedQuicEndpoint
impl Sync for ArcedQuicEndpoint
impl Unpin for ArcedQuicEndpoint
impl UnsafeUnpin for ArcedQuicEndpoint
impl !UnwindSafe for ArcedQuicEndpoint
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