Skip to main content

AsyncSeekExt

Trait AsyncSeekExt 

Source
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§

Source

fn seek(&mut self, pos: SeekFrom) -> Seek<'_, Self> ⓘ
where Self: Unpin,

Moves the stream’s position, answering the new one from the start.

Source

fn rewind(&mut self) -> Seek<'_, Self> ⓘ
where Self: Unpin,

Moves the stream’s position to the start.

Source

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".

Implementors§