Trait littlefs2::io::Seek

source ·
pub trait Seek {
    // Required method
    fn seek(&self, pos: SeekFrom) -> Result<usize>;
}
Expand description

The Seek trait provides a cursor which can be moved within a file.

It is possible to seek relative to either end or the current offset.

Required Methods§

source

fn seek(&self, pos: SeekFrom) -> Result<usize>

Seek to an offset in bytes. If successful, returns the new position from start of file.

Implementors§

source§

impl<S: Storage> Seek for File<'_, '_, S>