Struct Sink
#[must_use = "writers do nothing unless polled"]
pub struct Sink { /* private fields */ }
Writer for the [sink()] function.
Trait 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, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
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
Blanket Implementations
impl<T> Any for Sink
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Sink
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Sink
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Sink
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for Sink
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 Sink
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Sink
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>