pub struct WebTransportSendStream { /* private fields */ }Available on (crate features
http1 or http2 or http3) and crate feature http3 and crate feature webtransport only.Expand description
A send-only WebTransport stream.
Implementations§
Source§impl WebTransportSendStream
impl WebTransportSendStream
Sourcepub fn into_inner(self) -> WtSendStream<SendStream<Bytes>, Bytes>
pub fn into_inner(self) -> WtSendStream<SendStream<Bytes>, Bytes>
Get the inner h3_webtransport::stream::SendStream.
Can be used to access lower-level functionality.
Sourcepub async fn finish(&mut self) -> Result<(), StreamErrorIncoming>
pub async fn finish(&mut self) -> Result<(), StreamErrorIncoming>
Finish writing to the stream.
This signals that no more data will be sent on this stream.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WebTransportSendStream
impl RefUnwindSafe for WebTransportSendStream
impl Send for WebTransportSendStream
impl Sync for WebTransportSendStream
impl Unpin for WebTransportSendStream
impl UnwindSafe for WebTransportSendStream
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