pub trait AsyncSeekWith<'a> {
type SeekFuture: CompletionFuture<Output = Result<u64>>;
// Required method
fn seek(&'a mut self, pos: SeekFrom) -> Self::SeekFuture;
}Expand description
A cursor which can be moved within a stream of bytes with a specific lifetime.
Required Associated Types§
Sourcetype SeekFuture: CompletionFuture<Output = Result<u64>>
type SeekFuture: CompletionFuture<Output = Result<u64>>
Future that seeks to an offset a stream. If successful, resolves to the new position from the start of the stream.
Required Methods§
Sourcefn seek(&'a mut self, pos: SeekFrom) -> Self::SeekFuture
fn seek(&'a mut self, pos: SeekFrom) -> Self::SeekFuture
Seek to an offset in bytes in a stream.