pub struct TryCompleteWhen<St: Stream, Wr, F> { /* private fields */ }Expand description
Stream for try_complete_when.
Trait Implementations§
Source§impl<St, Wr, F> Debug for TryCompleteWhen<St, Wr, F>
impl<St, Wr, F> Debug for TryCompleteWhen<St, Wr, F>
Source§impl<St, Wr, F> FusedStream for TryCompleteWhen<St, Wr, F>
impl<St, Wr, F> FusedStream for TryCompleteWhen<St, Wr, F>
Source§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true if the stream should no longer be polled.Source§impl<St, Wr, F> Stream for TryCompleteWhen<St, Wr, F>
impl<St, Wr, F> Stream for TryCompleteWhen<St, Wr, F>
Source§type Item = Result<<Wr as MultipartWrite<<St as Stream>::Item>>::Output, <Wr as MultipartWrite<<St as Stream>::Item>>::Error>
type Item = Result<<Wr as MultipartWrite<<St as Stream>::Item>>::Output, <Wr as MultipartWrite<<St as Stream>::Item>>::Error>
Values yielded by the stream.
impl<'__pin, St: Stream, Wr, F> Unpin for TryCompleteWhen<St, Wr, F>where
PinnedFieldsOf<__Origin<'__pin, St, Wr, F>>: Unpin,
Auto Trait Implementations§
impl<St, Wr, F> Freeze for TryCompleteWhen<St, Wr, F>
impl<St, Wr, F> RefUnwindSafe for TryCompleteWhen<St, Wr, F>
impl<St, Wr, F> Send for TryCompleteWhen<St, Wr, F>
impl<St, Wr, F> Sync for TryCompleteWhen<St, Wr, F>
impl<St, Wr, F> UnsafeUnpin for TryCompleteWhen<St, Wr, F>
impl<St, Wr, F> UnwindSafe for TryCompleteWhen<St, Wr, F>
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
Source§impl<St> MultipartStreamExt for Stwhere
St: Stream,
impl<St> MultipartStreamExt for Stwhere
St: Stream,
Source§fn complete_with<Wr>(self, writer: Wr) -> CompleteWith<Self, Wr> ⓘ
fn complete_with<Wr>(self, writer: Wr) -> CompleteWith<Self, Wr> ⓘ
Consumes a stream by passing to the provided
MultipartWrite, returning
the complete output of the writer in a future. Read moreSource§fn try_complete_when<Wr, F>(
self,
writer: Wr,
f: F,
) -> TryCompleteWhen<Self, Wr, F>
fn try_complete_when<Wr, F>( self, writer: Wr, f: F, ) -> TryCompleteWhen<Self, Wr, F>
Transforms this stream into a stream of
Results returned by polling
the writer for completion. Read more