pub trait Seek: Io {
    fn seek(&mut self, pos: SeekFrom) -> Result<u64, Self::Error>;

    fn rewind(&mut self) -> Result<(), Self::Error> { ... }
    fn stream_position(&mut self) -> Result<u64, Self::Error> { ... }
}
Expand description

Blocking seek within streams.

Semantics are the same as std::io::Seek, check its documentation for details.

Required Methods

Seek to an offset, in bytes, in a stream.

Provided Methods

Rewind to the beginning of a stream.

Returns the current seek position from the start of the stream.

Implementations on Foreign Types

Implementors