Struct h3_quinn::OpenStreams
source · pub struct OpenStreams { /* private fields */ }
Expand description
Stream opener backed by a Quinn connection
Implements quic::OpenStreams
using quinn::Connection
,
quinn::OpenBi
, quinn::OpenUni
.
Trait Implementations§
source§impl Clone for OpenStreams
impl Clone for OpenStreams
source§impl<B> OpenStreams<B> for OpenStreamswhere
B: Buf,
impl<B> OpenStreams<B> for OpenStreamswhere
B: Buf,
§type RecvStream = RecvStream
type RecvStream = RecvStream
The type of the receiving part of
BidiStream
§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 Error = ConnectionError
type Error = ConnectionError
Error type yielded by these trait methods
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.
Auto Trait Implementations§
impl Freeze for OpenStreams
impl !RefUnwindSafe for OpenStreams
impl Send for OpenStreams
impl !Sync for OpenStreams
impl Unpin for OpenStreams
impl !UnwindSafe for OpenStreams
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