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 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.
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