Sink in std::io - Rust (original) (raw)

Struct Sink

1.0.0 · Source


#[non_exhaustive]

pub struct Sink;

Expand description

A writer which will move data into the void.

This struct is generally created by calling sink(). Please see the documentation of sink() for more details.

1.0.0 · Source§

1.0.0 · Source§

1.0.0 · Source§

1.48.0 · Source§

Source§

Writes a buffer into this writer, returning how many bytes were written. Read more

Source§

Like write, except that it writes from a slice of buffers. Read more

Source§

🔬This is a nightly-only experimental API. (can_vector #69941)

Source§

Flushes this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

1.0.0 · Source§

Attempts to write an entire buffer into this writer. Read more

Source§

🔬This is a nightly-only experimental API. (write_all_vectored #70436)

Attempts to write multiple buffers into this writer. Read more

1.0.0 · Source§

Writes a formatted string into this writer, returning any error encountered. Read more

1.0.0 · Source§

Creates a “by reference” adapter for this instance of Write. Read more

1.0.0 · Source§

Source§

Writes a buffer into this writer, returning how many bytes were written. Read more

Source§

Like write, except that it writes from a slice of buffers. Read more

Source§

🔬This is a nightly-only experimental API. (can_vector #69941)

Source§

Flushes this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

1.0.0 · Source§

Attempts to write an entire buffer into this writer. Read more

Source§

🔬This is a nightly-only experimental API. (write_all_vectored #70436)

Attempts to write multiple buffers into this writer. Read more

1.0.0 · Source§

Writes a formatted string into this writer, returning any error encountered. Read more

1.0.0 · Source§

Creates a “by reference” adapter for this instance of Write. Read more

1.0.0 · Source§

§

§

§

§

§

§