pub struct PubSink<'a, 'p, PSB, T>{ /* 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>
impl<'a, 'p, PSB, T> Sink<T> for PubSink<'a, 'p, PSB, T>
Source§type Error = Infallible
type Error = Infallible
The type of value produced by the sink when an error occurs.
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 moreAuto Trait Implementations§
impl<'a, 'p, PSB, T> Freeze for PubSink<'a, 'p, PSB, T>
impl<'a, 'p, PSB, T> RefUnwindSafe for PubSink<'a, 'p, PSB, T>
impl<'a, 'p, PSB, T> Send for PubSink<'a, 'p, PSB, T>
impl<'a, 'p, PSB, T> Sync for PubSink<'a, 'p, PSB, T>
impl<'a, 'p, PSB, T> Unpin for PubSink<'a, 'p, PSB, T>where
PSB: ?Sized,
impl<'a, 'p, PSB, T> UnwindSafe for PubSink<'a, 'p, PSB, T>
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