pub struct OpenStreams { /* private fields */ }Expand description
A handle for opening outgoing QUIC streams.
Implements h3::quic::OpenStreams for use with HTTP/3.
Trait Implementations§
Source§impl Clone for OpenStreams
Implements Clone for OpenStreams.
impl Clone for OpenStreams
Implements Clone for OpenStreams.
Source§impl<B> OpenStreams<B> for OpenStreamswhere
B: Buf,
impl<B> OpenStreams<B> for OpenStreamswhere
B: Buf,
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>>
Polls for opening a new bidirectional stream.
Returns a BidiStream on success.
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>>
Polls for opening a new unidirectional send stream.
Returns a SendStream on success.
Source§fn close(&mut self, code: Code, reason: &[u8])
fn close(&mut self, code: Code, reason: &[u8])
Closes the underlying connection with the given error code and reason.
Source§type SendStream = SendStream<B>
type SendStream = SendStream<B>
The type produced by
poll_open_send()Source§type BidiStream = BidiStream<B>
type BidiStream = BidiStream<B>
The type produced by
poll_open_bidi()Auto Trait Implementations§
impl Freeze for OpenStreams
impl !RefUnwindSafe for OpenStreams
impl Send for OpenStreams
impl Sync for OpenStreams
impl Unpin for OpenStreams
impl UnsafeUnpin 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