Struct IntoSink
#[must_use = "sinks do nothing unless polled"]
pub struct IntoSink<W, Item> { /* private fields */ }
Sink for the into_sink method.
Trait Implementations
impl<'__pin, W, Item> Unpin for IntoSink<W, Item>
where
PinnedFieldsOf<__Origin<'__pin, W, Item>>: Unpin,
impl<W: AsyncWrite, Item: AsRef<[u8]>> Sink<Item> for IntoSink<W, Item>
type Error = Error;fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>fn start_send(self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error>fn poll_flush(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>>
impl<W: Debug, Item: Debug> Debug for IntoSink<W, Item>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<W, Item> Freeze for IntoSink<W, Item>
where
W: Freeze,
Option<Block<Item>>: Freeze,
impl<W, Item> RefUnwindSafe for IntoSink<W, Item>
where
W: RefUnwindSafe,
Option<Block<Item>>: RefUnwindSafe,
impl<W, Item> Send for IntoSink<W, Item>
where
W: Send,
Option<Block<Item>>: Send,
impl<W, Item> Sync for IntoSink<W, Item>
where
W: Sync,
Option<Block<Item>>: Sync,
impl<W, Item> UnsafeUnpin for IntoSink<W, Item>
where
W: UnsafeUnpin,
Option<Block<Item>>: UnsafeUnpin,
impl<W, Item> UnwindSafe for IntoSink<W, Item>
where
W: UnwindSafe,
Option<Block<Item>>: UnwindSafe,
Blanket Implementations
impl<T> Any for IntoSink<W, Item>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IntoSink<W, Item>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IntoSink<W, Item>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for IntoSink<W, Item>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, Item> SinkExt<Item> for IntoSink<W, Item>
where
T: Sink<Item> + ?Sized,
impl<T, U> Into<U> for IntoSink<W, Item>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for IntoSink<W, Item>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for IntoSink<W, Item>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>