Struct Sink

struct Sink { ... }

Writer for the [sink()] function.

Implementations

impl AsyncWrite for Sink

fn poll_write(self: Pin<&mut Self>, _: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize>>
fn poll_write_vectored(self: Pin<&mut Self>, _: &mut Context<'_>, bufs: &[IoSlice<'_>]) -> Poll<Result<usize>>
fn poll_flush(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<()>>
fn poll_close(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<()>>

impl Debug for Sink

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Freeze for Sink

impl RefUnwindSafe for Sink

impl Send for Sink

impl Sync for Sink

impl Unpin for Sink

impl UnsafeUnpin for Sink

impl UnwindSafe for Sink

impl<T> Any for Sink

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Sink

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Sink

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for Sink

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Sink

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Sink

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Sink

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<W> AsyncWriteExt for Sink