pub struct Connection<B: Buf> { /* private fields */ }Expand description
The h3::quic::Connection front-end (§6): the two bounded accept receivers,
their per-direction accept-terminal cells and resume bits, and an embedded
StreamOpener it delegates OpenStreams to.
Trait Implementations§
Source§impl<B: Buf> Connection<B> for Connection<B>
impl<B: Buf> Connection<B> for Connection<B>
Source§type RecvStream = H3RecvStream<B>
type RecvStream = H3RecvStream<B>
The type produced by
poll_accept_recv()Source§type OpenStreams = StreamOpener<B>
type OpenStreams = StreamOpener<B>
A producer of outgoing Unidirectional and Bidirectional streams.
Source§fn poll_accept_recv(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::RecvStream, ConnectionErrorIncoming>>
fn poll_accept_recv( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Self::RecvStream, ConnectionErrorIncoming>>
Accept an incoming unidirectional stream Read more
Source§fn poll_accept_bidi(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::BidiStream, ConnectionErrorIncoming>>
fn poll_accept_bidi( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Self::BidiStream, ConnectionErrorIncoming>>
Accept an incoming bidirectional stream Read more
Source§fn opener(&self) -> Self::OpenStreams
fn opener(&self) -> Self::OpenStreams
Get an object to open outgoing streams.
Source§impl<B: Buf> Drop for Connection<B>
impl<B: Buf> Drop for Connection<B>
Source§impl<B: Buf> OpenStreams<B> for Connection<B>
impl<B: Buf> OpenStreams<B> for Connection<B>
Source§type BidiStream = H3Stream<B>
type BidiStream = H3Stream<B>
The type produced by
poll_open_bidi()Source§type SendStream = H3SendStream<B>
type SendStream = H3SendStream<B>
The type produced by
poll_open_send()Source§fn poll_open_bidi(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::BidiStream, StreamErrorIncoming>>
fn poll_open_bidi( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Self::BidiStream, StreamErrorIncoming>>
Poll the connection to create a new bidirectional stream.
Source§fn poll_open_send(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::SendStream, StreamErrorIncoming>>
fn poll_open_send( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Self::SendStream, StreamErrorIncoming>>
Poll the connection to create a new unidirectional stream.
Auto Trait Implementations§
impl<B> !RefUnwindSafe for Connection<B>
impl<B> !UnwindSafe for Connection<B>
impl<B> Freeze for Connection<B>
impl<B> Send for Connection<B>where
B: Send,
impl<B> Sync for Connection<B>where
B: Send,
impl<B> Unpin for Connection<B>
impl<B> UnsafeUnpin for Connection<B>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more