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§
Provided Methods§
sourceasync fn stream_position(&mut self) -> Result<u64, Self::Error>
async fn stream_position(&mut self) -> Result<u64, Self::Error>
Returns the current seek position from the start of the stream.