pub trait AsyncSeekExt: AsyncSeek {
// Provided methods
fn seek(&mut self, pos: SeekFrom) -> Seek<'_, Self> ⓘ
where Self: Unpin { ... }
fn rewind(&mut self) -> Seek<'_, Self> ⓘ
where Self: Unpin { ... }
fn stream_position(&mut self) -> Seek<'_, Self> ⓘ
where Self: Unpin { ... }
}Expand description
Seeks on any AsyncSeek.
Provided Methods§
Sourcefn seek(&mut self, pos: SeekFrom) -> Seek<'_, Self> ⓘwhere
Self: Unpin,
fn seek(&mut self, pos: SeekFrom) -> Seek<'_, Self> ⓘwhere
Self: Unpin,
Moves the stream’s position, answering the new one from the start.
Sourcefn rewind(&mut self) -> Seek<'_, Self> ⓘwhere
Self: Unpin,
fn rewind(&mut self) -> Seek<'_, Self> ⓘwhere
Self: Unpin,
Moves the stream’s position to the start.
Sourcefn stream_position(&mut self) -> Seek<'_, Self> ⓘwhere
Self: Unpin,
fn stream_position(&mut self) -> Seek<'_, Self> ⓘwhere
Self: Unpin,
The stream’s position from the start.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".