Struct futures::stream::SplitSink [−][src]
pub struct SplitSink<S> where
S: Sink, { /* fields omitted */ }
A Sink
part of the split pair
Methods
impl<S> SplitSink<S> where
S: Unpin + Sink,
[src]
impl<S> SplitSink<S> where
S: Unpin + Sink,
pub fn reunite(self, other: SplitStream<S>) -> Result<S, ReuniteError<S>>
[src]
pub fn reunite(self, other: SplitStream<S>) -> Result<S, ReuniteError<S>>
Attempts to put the two "halves" of a split Stream + Sink
back
together. Succeeds only if the SplitStream<S>
and SplitSink<S>
are
a matching pair originating from the same call to Stream::split
.
Trait Implementations
impl<S> Sink for SplitSink<S> where
S: Sink,
[src]
impl<S> Sink for SplitSink<S> where
S: Sink,
type SinkItem = <S as Sink>::SinkItem
The type of value that the sink accepts.
type SinkError = <S as Sink>::SinkError
The type of value produced by the sink when an error occurs.
fn poll_ready(
self: PinMut<SplitSink<S>>,
cx: &mut Context
) -> Poll<Result<(), <S as Sink>::SinkError>>
[src]
fn poll_ready(
self: PinMut<SplitSink<S>>,
cx: &mut Context
) -> Poll<Result<(), <S as Sink>::SinkError>>
Attempts to prepare the Sink
to receive a value. Read more
fn start_send(
self: PinMut<SplitSink<S>>,
item: <S as Sink>::SinkItem
) -> Result<(), <S as Sink>::SinkError>
[src]
fn start_send(
self: PinMut<SplitSink<S>>,
item: <S as Sink>::SinkItem
) -> Result<(), <S as Sink>::SinkError>
Begin the process of sending a value to the sink. Each call to this function must be proceeded by a successful call to poll_ready
which returned Ok(Poll::Ready(()))
. Read more
fn poll_flush(
self: PinMut<SplitSink<S>>,
cx: &mut Context
) -> Poll<Result<(), <S as Sink>::SinkError>>
[src]
fn poll_flush(
self: PinMut<SplitSink<S>>,
cx: &mut Context
) -> Poll<Result<(), <S as Sink>::SinkError>>
Flush any remaining output from this sink. Read more
fn poll_close(
self: PinMut<SplitSink<S>>,
cx: &mut Context
) -> Poll<Result<(), <S as Sink>::SinkError>>
[src]
fn poll_close(
self: PinMut<SplitSink<S>>,
cx: &mut Context
) -> Poll<Result<(), <S as Sink>::SinkError>>
Flush any remaining output and close this sink, if necessary. Read more
impl<S> Unpin for SplitSink<S> where
S: Sink,
[src]
impl<S> Unpin for SplitSink<S> where
S: Sink,
impl<S> Debug for SplitSink<S> where
S: Debug + Sink,
<S as Sink>::SinkItem: Debug,
[src]
impl<S> Debug for SplitSink<S> where
S: Debug + Sink,
<S as Sink>::SinkItem: Debug,