Struct futures_util::compat::CompatSink [−][src]
#[must_use = "sinks do nothing unless polled"]pub struct CompatSink<T, Item> { /* fields omitted */ }
compat
and sink
only.Implementations
impl<T, Item> CompatSink<T, Item>
[src]
impl<T, Item> CompatSink<T, Item>
[src]Trait Implementations
impl<T: Debug, Item: Debug> Debug for CompatSink<T, Item>
[src]
impl<T: Debug, Item: Debug> Debug for CompatSink<T, Item>
[src]impl<T, Item> Sink for CompatSink<T, Item> where
T: Sink03<Item> + Unpin,
[src]
impl<T, Item> Sink for CompatSink<T, Item> where
T: Sink03<Item> + Unpin,
[src]type SinkItem = Item
type SinkItem = Item
The type of value that the sink accepts.
fn start_send(
&mut self,
item: Self::SinkItem
) -> StartSend01<Self::SinkItem, Self::SinkError>
[src]
fn start_send(
&mut self,
item: Self::SinkItem
) -> StartSend01<Self::SinkItem, Self::SinkError>
[src]Begin the process of sending a value to the sink. Read more
fn poll_complete(&mut self) -> Poll01<(), Self::SinkError>
[src]
fn poll_complete(&mut self) -> Poll01<(), Self::SinkError>
[src]Flush all output from this sink, if necessary. Read more
fn close(&mut self) -> Poll01<(), Self::SinkError>
[src]
fn close(&mut self) -> Poll01<(), Self::SinkError>
[src]A method to indicate that no more values will ever be pushed into this sink. Read more
fn wait(self) -> Wait<Self>
[src]
fn wait(self) -> Wait<Self>
[src]Creates a new object which will produce a synchronous sink. Read more
fn with<U, F, Fut>(self, f: F) -> With<Self, U, F, Fut> where
F: FnMut(U) -> Fut,
Fut: IntoFuture<Item = Self::SinkItem>,
<Fut as IntoFuture>::Error: From<Self::SinkError>,
[src]
fn with<U, F, Fut>(self, f: F) -> With<Self, U, F, Fut> where
F: FnMut(U) -> Fut,
Fut: IntoFuture<Item = Self::SinkItem>,
<Fut as IntoFuture>::Error: From<Self::SinkError>,
[src]Composes a function in front of the sink. Read more
fn with_flat_map<U, F, St>(self, f: F) -> WithFlatMap<Self, U, F, St> where
F: FnMut(U) -> St,
St: Stream<Item = Self::SinkItem, Error = Self::SinkError>,
[src]
fn with_flat_map<U, F, St>(self, f: F) -> WithFlatMap<Self, U, F, St> where
F: FnMut(U) -> St,
St: Stream<Item = Self::SinkItem, Error = Self::SinkError>,
[src]Composes a function in front of the sink. Read more
fn sink_map_err<F, E>(self, f: F) -> SinkMapErr<Self, F> where
F: FnOnce(Self::SinkError) -> E,
[src]
fn sink_map_err<F, E>(self, f: F) -> SinkMapErr<Self, F> where
F: FnOnce(Self::SinkError) -> E,
[src]Transforms the error returned by the sink.
fn sink_from_err<E>(self) -> SinkFromErr<Self, E> where
E: From<Self::SinkError>,
[src]
fn sink_from_err<E>(self) -> SinkFromErr<Self, E> where
E: From<Self::SinkError>,
[src]Map this sink’s error to any error implementing From
for this sink’s
Error
, returning a new sink. Read more
fn buffer(self, amt: usize) -> Buffer<Self>
[src]
fn buffer(self, amt: usize) -> Buffer<Self>
[src]Adds a fixed-size buffer to the current sink. Read more
fn fanout<S>(self, other: S) -> Fanout<Self, S> where
S: Sink<SinkItem = Self::SinkItem, SinkError = Self::SinkError>,
Self::SinkItem: Clone,
[src]
fn fanout<S>(self, other: S) -> Fanout<Self, S> where
S: Sink<SinkItem = Self::SinkItem, SinkError = Self::SinkError>,
Self::SinkItem: Clone,
[src]Fanout items to multiple sinks. Read more
fn flush(self) -> Flush<Self>
[src]
fn flush(self) -> Flush<Self>
[src]A future that completes when the sink has finished processing all pending requests. Read more
Auto Trait Implementations
impl<T, Item> RefUnwindSafe for CompatSink<T, Item> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, Item> Send for CompatSink<T, Item> where
T: Send,
T: Send,
impl<T, Item> Sync for CompatSink<T, Item> where
T: Sync,
T: Sync,
impl<T, Item> Unpin for CompatSink<T, Item> where
T: Unpin,
T: Unpin,
impl<T, Item> UnwindSafe for CompatSink<T, Item> where
T: UnwindSafe,
T: UnwindSafe,