Struct h3_quinn::Connection
source · pub struct Connection { /* private fields */ }
Expand description
A QUIC connection backed by Quinn
Implements a quic::Connection
backed by a quinn::Connection
.
Implementations§
source§impl Connection
impl Connection
sourcepub fn new(conn: Connection) -> Self
pub fn new(conn: Connection) -> Self
Create a Connection
from a quinn::Connection
Trait Implementations§
source§impl<B> Connection<B> for Connectionwhere
B: Buf,
impl<B> Connection<B> for Connectionwhere
B: Buf,
§type RecvStream = RecvStream
type RecvStream = RecvStream
The type produced by
poll_accept_recv()
§type OpenStreams = OpenStreams
type OpenStreams = OpenStreams
A producer of outgoing Unidirectional and Bidirectional streams.
§type AcceptError = ConnectionError
type AcceptError = ConnectionError
Error type yielded by these trait methods
source§fn poll_accept_bidi(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Option<Self::BidiStream>, Self::AcceptError>>
fn poll_accept_bidi( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Option<Self::BidiStream>, Self::AcceptError>>
Accept an incoming bidirectional stream Read more
source§fn poll_accept_recv(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Option<Self::RecvStream>, Self::AcceptError>>
fn poll_accept_recv( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Option<Self::RecvStream>, Self::AcceptError>>
Accept an incoming unidirectional stream Read more
source§fn opener(&self) -> Self::OpenStreams
fn opener(&self) -> Self::OpenStreams
Get an object to open outgoing streams.
source§impl<B> OpenStreams<B> for Connectionwhere
B: Buf,
impl<B> OpenStreams<B> for Connectionwhere
B: Buf,
§type SendStream = SendStream<B>
type SendStream = SendStream<B>
The type produced by
poll_open_send()
§type BidiStream = BidiStream<B>
type BidiStream = BidiStream<B>
The type produced by
poll_open_bidi()
§type OpenError = ConnectionError
type OpenError = ConnectionError
Error type yielded by these trait methods
source§fn poll_open_bidi(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::BidiStream, Self::OpenError>>
fn poll_open_bidi( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Self::BidiStream, Self::OpenError>>
Poll the connection to create a new bidirectional stream.
source§fn poll_open_send(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::SendStream, Self::OpenError>>
fn poll_open_send( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Self::SendStream, Self::OpenError>>
Poll the connection to create a new unidirectional stream.
source§impl RecvDatagramExt for Connection
impl RecvDatagramExt for Connection
§type Error = ConnectionError
type Error = ConnectionError
The error type that can occur when receiving a datagram
source§impl<B> SendDatagramExt<B> for Connectionwhere
B: Buf,
impl<B> SendDatagramExt<B> for Connectionwhere
B: Buf,
§type Error = SendDatagramError
type Error = SendDatagramError
The error type that can occur when sending a datagram
source§fn send_datagram(&mut self, data: Datagram<B>) -> Result<(), SendDatagramError>
fn send_datagram(&mut self, data: Datagram<B>) -> Result<(), SendDatagramError>
Send a datagram
Auto Trait Implementations§
impl Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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