doc.rust-lang.org
fn flush(&mut self) -> Result<()>
Flushes this output stream, ensuring that all intermediately buffered contents reach their destination.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn by_ref(&mut self) -> &mut Self
Creates a "by reference" adapter for this instance of Write.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Write
A trait for objects which are byte-oriented sinks.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn sink() -> Sink
Creates an instance of a writer which will successfully consume all data.
function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn repeat(byte: u8) -> Repeat
Creates an instance of a reader that infinitely repeats one byte.
function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn empty() -> Empty
Creates a value that is always at EOF for reads, and ignores all data written.
function
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Take<T>
Reader adapter which limits the bytes read from an underlying reader.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Sink
A writer which will move data into the void.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Repeat
A reader which yields one byte over and over and over and over and over and...
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Empty
Empty ignores any data written via Write, and will always be empty (returning zero bytes) when read via Read.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Chain<T, U>
Adapter to chain together two readers.
struct
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub enum SeekFrom
Enumeration of possible methods to seek within an I/O object.
enum
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn stream_position(&mut self) -> Result<u64>
Returns the current seek position from the start of the stream.
method
core
Stable since 1.51.0
Version 1.100.0-nightly
doc.rust-lang.org
fn seek_relative(&mut self, offset: i64) -> Result<()>
Seeks relative to the current position.
method
core
Stable since 1.80.0
Version 1.100.0-nightly
doc.rust-lang.org
fn seek(&mut self, pos: SeekFrom) -> Result<u64>
Seek to an offset, in bytes, in a stream.
method
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn rewind(&mut self) -> Result<()>
Rewind to the beginning of a stream.
method
core
Stable since 1.55.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Seek
The Seek trait provides a cursor which can be moved within a stream of bytes.
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct IoSliceMut<'a>
A buffer type used with Read::read_vectored.
struct
core
Stable since 1.36.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct IoSlice<'a>
A buffer type used with Write::write_vectored.
struct
core
Stable since 1.36.0
Version 1.100.0-nightly
doc.rust-lang.org
pub type Result<T> = result::Result<T, Error>
A specialized Result type for I/O operations.
type_alias
core
Stable since 1.0.0
Version 1.100.0-nightly