pub trait Seek: Io {
    type SeekFuture<'a>: Future<Output = Result<u64, Self::Error>>
    where
        Self: 'a
; fn seek<'a>(&'a mut self, pos: SeekFrom) -> Self::SeekFuture<'a>; fn rewind<'a>(
        &'a mut self
    ) -> impl Future<Output = Result<(), Self::Error>> + 'a { ... } fn stream_position<'a>(&'a mut self) -> Self::SeekFuture<'a> { ... } }
Available on crate feature async only.
Expand description

Async seek within streams.

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

Required Associated Types

Future returned by seek.

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