pub struct QuinnConnection(/* private fields */);Expand description
A QUIC connection backed by quinn, implementing QuicConnectionTrait.
Trait Implementations§
Source§impl Clone for QuinnConnection
impl Clone for QuinnConnection
Source§fn clone(&self) -> QuinnConnection
fn clone(&self) -> QuinnConnection
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 QuinnConnection
impl Debug for QuinnConnection
Source§impl QuicConnectionTrait for QuinnConnection
impl QuicConnectionTrait for QuinnConnection
Source§type BidiStream = QuinnTransport
type BidiStream = QuinnTransport
A bidirectional stream
Source§type RecvStream = QuinnRecv
type RecvStream = QuinnRecv
A unidirectional receive stream from the peer
Source§type SendStream = QuinnSend
type SendStream = QuinnSend
A unidirectional send stream to the peer
Source§async fn accept_bidi(&self) -> Result<(u64, Self::BidiStream)>
async fn accept_bidi(&self) -> Result<(u64, Self::BidiStream)>
Accept the next bidirectional stream opened by the peer. Read more
Source§async fn accept_uni(&self) -> Result<(u64, Self::RecvStream)>
async fn accept_uni(&self) -> Result<(u64, Self::RecvStream)>
Accept the next unidirectional stream opened by the peer. Read more
Source§async fn open_uni(&self) -> Result<(u64, Self::SendStream)>
async fn open_uni(&self) -> Result<(u64, Self::SendStream)>
Open a new unidirectional stream to the peer. Read more
Source§async fn open_bidi(&self) -> Result<(u64, Self::BidiStream)>
async fn open_bidi(&self) -> Result<(u64, Self::BidiStream)>
Open a new bidirectional stream to the peer. Read more
Source§fn remote_address(&self) -> SocketAddr
fn remote_address(&self) -> SocketAddr
The peer’s address.
Source§fn close(&self, error_code: u64, reason: &[u8])
fn close(&self, error_code: u64, reason: &[u8])
Close the entire QUIC connection with an error code and reason.
Source§fn send_datagram(&self, data: &[u8]) -> Result<()>
fn send_datagram(&self, data: &[u8]) -> Result<()>
Send an unreliable datagram over the QUIC connection. Read more
Auto Trait Implementations§
impl Freeze for QuinnConnection
impl RefUnwindSafe for QuinnConnection
impl Send for QuinnConnection
impl Sync for QuinnConnection
impl Unpin for QuinnConnection
impl UnsafeUnpin for QuinnConnection
impl UnwindSafe for QuinnConnection
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