Trait sgx_tstd::io::Seek [−][src]
The Seek
trait provides a cursor which can be moved within a stream of
bytes.
The stream typically has a fixed size, allowing seeking relative to either end or the current offset.
Required Methods
fn seek(&mut self, pos: SeekFrom) -> Result<u64>
Seek to an offset, in bytes, in a stream.
A seek beyond the end of a stream is allowed, but implementation defined.
If the seek operation completed successfully,
this method returns the new position from the start of the stream.
That position can be used later with SeekFrom::Start
.
Errors
Seeking to a negative offset is considered an error.
Implementors
impl Seek for SgxFile
impl<'a> Seek for &'a SgxFile
impl<R: Seek> Seek for BufReader<R>
impl<W: Write + Seek> Seek for BufWriter<W>
impl<T> Seek for Cursor<T> where
T: AsRef<[u8]>,impl<'a, S: Seek + ?Sized> Seek for &'a mut S
impl<S: Seek + ?Sized> Seek for Box<S>
impl Seek for File
impl<'a> Seek for &'a File