pub struct WriteUntil<St: Stream, Wr, F> { /* private fields */ }Expand description
Stream for [complete_when].
Trait Implementations§
Source§impl<St, Wr, F> Debug for WriteUntil<St, Wr, F>
impl<St, Wr, F> Debug for WriteUntil<St, Wr, F>
Source§impl<St, Wr, F> FusedStream for WriteUntil<St, Wr, F>
impl<St, Wr, F> FusedStream for WriteUntil<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 WriteUntil<St, Wr, F>
impl<St, Wr, F> Stream for WriteUntil<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 WriteUntil<St, Wr, F>where
PinnedFieldsOf<__Origin<'__pin, St, Wr, F>>: Unpin,
Auto Trait Implementations§
impl<St, Wr, F> Freeze for WriteUntil<St, Wr, F>
impl<St, Wr, F> RefUnwindSafe for WriteUntil<St, Wr, F>
impl<St, Wr, F> Send for WriteUntil<St, Wr, F>
impl<St, Wr, F> Sync for WriteUntil<St, Wr, F>
impl<St, Wr, F> UnwindSafe for WriteUntil<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_writer<Wr>(self, writer: Wr) -> CollectWriter<Self, Wr> ⓘ
fn collect_writer<Wr>(self, writer: Wr) -> CollectWriter<Self, Wr> ⓘ
Collects a stream by writing to a
MultipartWrite, returning the
result of completing the write as a future.Source§fn try_send<Wr>(self, writer: Wr) -> TrySend<Self, Wr>
fn try_send<Wr>(self, writer: Wr) -> TrySend<Self, Wr>
Call
start_send on the provided writer with the items of this stream,
producing a stream of results in the return value Wr::Ret.Source§fn write_until<Wr, F>(self, writer: Wr, f: F) -> WriteUntil<Self, Wr, F>
fn write_until<Wr, F>(self, writer: Wr, f: F) -> WriteUntil<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.