pub struct SinkCompat<Psh> { /* private fields */ }Implementations§
Source§impl<Psh> SinkCompat<Psh>
impl<Psh> SinkCompat<Psh>
Sourcepub fn into_inner(self) -> Psh
pub fn into_inner(self) -> Psh
Returns the wrapped Push.
Trait Implementations§
Source§impl<Psh> AsMut<Psh> for SinkCompat<Psh>
impl<Psh> AsMut<Psh> for SinkCompat<Psh>
Source§impl<Psh> AsRef<Psh> for SinkCompat<Psh>
impl<Psh> AsRef<Psh> for SinkCompat<Psh>
Source§impl<Psh, Item> Sink<Item> for SinkCompat<Psh>
impl<Psh, Item> Sink<Item> for SinkCompat<Psh>
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: Item) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Item) -> 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 moreimpl<'__pin, Psh> Unpin for SinkCompat<Psh>where
PinnedFieldsOf<__Origin<'__pin, Psh>>: Unpin,
Auto Trait Implementations§
impl<Psh> Freeze for SinkCompat<Psh>where
Psh: Freeze,
impl<Psh> RefUnwindSafe for SinkCompat<Psh>where
Psh: RefUnwindSafe,
impl<Psh> Send for SinkCompat<Psh>where
Psh: Send,
impl<Psh> Sync for SinkCompat<Psh>where
Psh: Sync,
impl<Psh> UnsafeUnpin for SinkCompat<Psh>where
Psh: UnsafeUnpin,
impl<Psh> UnwindSafe for SinkCompat<Psh>where
Psh: UnwindSafe,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more