pub struct SendStream<B: Buf> { /* private fields */ }Expand description
A sending QUIC stream that transmits buffered data.
This struct wraps an iroh::endpoint::SendStream and implements the
h3::quic::SendStream and h3::quic::SendStreamUnframed traits.
Trait Implementations§
Source§impl<B> SendStream<B> for SendStream<B>where
B: Buf,
impl<B> SendStream<B> for SendStream<B>where
B: Buf,
Source§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), StreamErrorIncoming>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), StreamErrorIncoming>>
Polls to check if the stream is ready to send more data.
If data is pending in self.writing, it is written until complete.
Source§fn poll_finish(
&mut self,
_cx: &mut Context<'_>,
) -> Poll<Result<(), StreamErrorIncoming>>
fn poll_finish( &mut self, _cx: &mut Context<'_>, ) -> Poll<Result<(), StreamErrorIncoming>>
Finishes sending data on this stream and closes it gracefully.
Source§fn reset(&mut self, reset_code: u64)
fn reset(&mut self, reset_code: u64)
Resets the stream with the provided error code, immediately terminating it.
Source§impl<B> SendStreamUnframed<B> for SendStream<B>where
B: Buf,
impl<B> SendStreamUnframed<B> for SendStream<B>where
B: Buf,
Auto Trait Implementations§
impl<B> !Freeze for SendStream<B>
impl<B> RefUnwindSafe for SendStream<B>where
B: RefUnwindSafe,
impl<B> Send for SendStream<B>where
B: Send,
impl<B> Sync for SendStream<B>where
B: Sync,
impl<B> Unpin for SendStream<B>where
B: Unpin,
impl<B> UnsafeUnpin for SendStream<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for SendStream<B>where
B: UnwindSafe,
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