pub struct TrySend<St: Stream, Wr> { /* private fields */ }Expand description
Stream for try_send.
Trait Implementations§
Source§impl<St, Wr> FusedStream for TrySend<St, Wr>
impl<St, Wr> FusedStream for TrySend<St, Wr>
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> Stream for TrySend<St, Wr>
impl<St, Wr> Stream for TrySend<St, Wr>
Source§type Item = Result<<Wr as MultipartWrite<<St as Stream>::Item>>::Ret, <Wr as MultipartWrite<<St as Stream>::Item>>::Error>
type Item = Result<<Wr as MultipartWrite<<St as Stream>::Item>>::Ret, <Wr as MultipartWrite<<St as Stream>::Item>>::Error>
Values yielded by the stream.
impl<'__pin, St: Stream, Wr> Unpin for TrySend<St, Wr>where
PinnedFieldsOf<__Origin<'__pin, St, Wr>>: Unpin,
Auto Trait Implementations§
impl<St, Wr> Freeze for TrySend<St, Wr>
impl<St, Wr> RefUnwindSafe for TrySend<St, Wr>
impl<St, Wr> Send for TrySend<St, Wr>
impl<St, Wr> Sync for TrySend<St, Wr>
impl<St, Wr> UnwindSafe for TrySend<St, Wr>
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.