Trait littlefs2::io::Seek[][src]

pub trait Seek {
    fn seek(&self, pos: SeekFrom) -> Result<usize>;
}

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

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

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

Loading content...

Implementors

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

Loading content...