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
Auto Trait Implementations§
impl Freeze for QuinnEndpoint
impl !RefUnwindSafe for QuinnEndpoint
impl Send for QuinnEndpoint
impl Sync for QuinnEndpoint
impl Unpin for QuinnEndpoint
impl UnsafeUnpin for QuinnEndpoint
impl !UnwindSafe 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