Trait AsyncReset

Source
pub trait AsyncReset {
    // Required method
    fn reset(
        &mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>>;
}
Expand description

异步重置输入流接口

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

Required Methods§

Source

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

异步重置输入流

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

Implementations on Foreign Types§

Source§

impl AsyncReset for AsyncDataSourceReader

Source§

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

Source§

impl AsyncReset for AsyncSeekableSource

Source§

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

Implementors§