pub trait AsyncReset {
    // Required method
    fn reset(
        &mut self
    ) -> Pin<Box<dyn Future<Output = IoResult<()>> + Send + '_>>;
}
Available on crate feature async only.
Expand description

异步重置输入流接口

该接口相当于实现 seek(SeekFrom::Start(0))

Required Methods§

source

fn reset(&mut self) -> Pin<Box<dyn Future<Output = IoResult<()>> + Send + '_>>

异步重置输入流

相当于 seek(SeekFrom::Start(0))

Implementors§