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::NewConnection
]
Trait Implementations§
source§impl<B> Connection<B> for Connectionwhere
B: Buf,
impl<B> Connection<B> for Connectionwhere B: Buf,
§type SendStream = SendStream<B>
type SendStream = SendStream<B>
The type of the sending part of
BidiStream
§type RecvStream = RecvStream
type RecvStream = RecvStream
The type produced by
poll_accept_recv()
§type BidiStream = BidiStream<B>
type BidiStream = BidiStream<B>
The type produced by
poll_accept_bidi()
§type OpenStreams = OpenStreams
type OpenStreams = OpenStreams
A producer of outgoing Unidirectional and Bidirectional streams.
§type Error = ConnectionError
type Error = ConnectionError
Error type yielded by this trait methods
source§fn poll_accept_bidi(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<Option<Self::BidiStream>, Self::Error>>
fn poll_accept_bidi( &mut self, cx: &mut Context<'_> ) -> Poll<Result<Option<Self::BidiStream>, Self::Error>>
Accept an incoming bidirectional stream Read more
source§fn poll_accept_recv(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<Option<Self::RecvStream>, Self::Error>>
fn poll_accept_recv( &mut self, cx: &mut Context<'_> ) -> Poll<Result<Option<Self::RecvStream>, Self::Error>>
Accept an incoming unidirectional stream Read more
source§fn poll_open_bidi(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<Self::BidiStream, Self::Error>>
fn poll_open_bidi( &mut self, cx: &mut Context<'_> ) -> Poll<Result<Self::BidiStream, Self::Error>>
Poll the connection to create a new bidirectional stream.
source§fn poll_open_send(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<Self::SendStream, Self::Error>>
fn poll_open_send( &mut self, cx: &mut Context<'_> ) -> Poll<Result<Self::SendStream, Self::Error>>
Poll the connection to create a new unidirectional stream.
source§fn opener(&self) -> Self::OpenStreams
fn opener(&self) -> Self::OpenStreams
Get an object to open outgoing streams.
Auto Trait Implementations§
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