Trait nue_io::SeekRewind [] [src]

pub trait SeekRewind {
    fn seek_rewind(&mut self) -> Result<()>;
}

A limited form of seeking that can only be reset from the beginning.

Useful for expressing compressed or cipher streams.

Required Methods

fn seek_rewind(&mut self) -> Result<()>

Seeks back to the beginning of the stream.

Conceptually equivalent to seek(SeekFrom::Start(0)).

Implementors