pub struct QuinnEndpoint(/* private fields */);Expand description
A bound quinn QUIC endpoint that accepts and initiates connections.
Trait Implementations§
Source§impl QuicEndpoint for QuinnEndpoint
impl QuicEndpoint for QuinnEndpoint
Source§type Connection = QuinnConnection
type Connection = QuinnConnection
The connection type yielded by this endpoint.
Source§async fn accept(&self) -> Option<Self::Connection>
async fn accept(&self) -> Option<Self::Connection>
Accept the next inbound QUIC connection, or return
None if the endpoint is done.Source§async fn connect(
&self,
addr: SocketAddr,
server_name: &str,
) -> Result<Self::Connection>
async fn connect( &self, addr: SocketAddr, server_name: &str, ) -> Result<Self::Connection>
Initiate a QUIC connection to the given address. Read more
Source§fn local_addr(&self) -> Result<SocketAddr>
fn local_addr(&self) -> Result<SocketAddr>
The local address this endpoint is bound to. The default impl returns
Unsupported; adapters override when a bound UDP socket is available.Auto Trait Implementations§
impl !RefUnwindSafe for QuinnEndpoint
impl !UnwindSafe for QuinnEndpoint
impl Freeze for QuinnEndpoint
impl Send for QuinnEndpoint
impl Sync for QuinnEndpoint
impl Unpin for QuinnEndpoint
impl UnsafeUnpin for QuinnEndpoint
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