Trait embedded_io::asynch::Seek

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

    async fn rewind(&mut self) -> Result<(), Self::Error> { ... }
    async fn stream_position(&mut self) -> Result<u64, Self::Error> { ... }
}
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 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§