pub struct CompleteWhen<St: Stream, Wr, F> { /* private fields */ }Expand description
Stream for complete_when.
Trait Implementations§
Source§impl<St, Wr, F> Debug for CompleteWhen<St, Wr, F>
impl<St, Wr, F> Debug for CompleteWhen<St, Wr, F>
Source§impl<St, Wr, F> FusedStream for CompleteWhen<St, Wr, F>
impl<St, Wr, F> FusedStream for CompleteWhen<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 CompleteWhen<St, Wr, F>
impl<St, Wr, F> Stream for CompleteWhen<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 CompleteWhen<St, Wr, F>where
PinnedFieldsOf<__Origin<'__pin, St, Wr, F>>: Unpin,
Auto Trait Implementations§
impl<St, Wr, F> Freeze for CompleteWhen<St, Wr, F>
impl<St, Wr, F> RefUnwindSafe for CompleteWhen<St, Wr, F>
impl<St, Wr, F> Send for CompleteWhen<St, Wr, F>
impl<St, Wr, F> Sync for CompleteWhen<St, Wr, F>
impl<St, Wr, F> UnwindSafe for CompleteWhen<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 collect_complete<Wr>(self, writer: Wr) -> CollectComplete<Self, Wr> ⓘ
fn collect_complete<Wr>(self, writer: Wr) -> CollectComplete<Self, Wr> ⓘ
Collects a stream by writing to a
MultipartWrite, returning the
result of completing the write as a future.Source§fn complete_when<Wr, F>(self, writer: Wr, f: F) -> CompleteWhen<Self, Wr, F>
fn complete_when<Wr, F>(self, writer: Wr, f: F) -> CompleteWhen<Self, Wr, F>
Sends items of this stream to the writer, yielding the completed written
value as the next item in the resulting stream when the provided closure
returns
true.