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.
Sourcepub fn local_addr(&self) -> Result<SocketAddr>
pub fn local_addr(&self) -> Result<SocketAddr>
The local address this endpoint is bound to, if the adapter supports reporting it.
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 (const: unstable) · 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 !RefUnwindSafe for ArcedQuicEndpoint
impl !UnwindSafe for ArcedQuicEndpoint
impl Freeze for ArcedQuicEndpoint
impl Send for ArcedQuicEndpoint
impl Sync for ArcedQuicEndpoint
impl Unpin for ArcedQuicEndpoint
impl UnsafeUnpin 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