pub struct PubSink<'a, 'p, PSB, T>where
T: Clone,
PSB: PubSubBehavior<T> + ?Sized,{ /* private fields */ }
Expand description
futures_sink::Sink
adapter for Pub
.
Trait Implementations§
Source§impl<'a, 'p, PSB, T> Sink<T> for PubSink<'a, 'p, PSB, T>where
PSB: PubSubBehavior<T> + ?Sized,
T: Clone,
impl<'a, 'p, PSB, T> Sink<T> for PubSink<'a, 'p, PSB, T>where
PSB: PubSubBehavior<T> + ?Sized,
T: Clone,
Source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read moreSource§fn start_send(self: Pin<&mut Self>, item: T) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: T) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read moreSource§fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Flush any remaining output from this sink. Read more
Source§fn poll_close(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_close( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Flush any remaining output and close this sink, if necessary. Read more