Trait RandWriter

Source
pub trait RandWriter: Send {
    // Required methods
    fn write_randomly(
        &mut self,
        range: ProgressEntry,
        bytes: &Bytes,
    ) -> impl Future<Output = Result<(), Error>> + Send;
    fn flush(&mut self) -> impl Future<Output = Result<(), Error>> + Send;
}

Required Methods§

Source

fn write_randomly( &mut self, range: ProgressEntry, bytes: &Bytes, ) -> impl Future<Output = Result<(), Error>> + Send

Source

fn flush(&mut self) -> impl Future<Output = Result<(), Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl RandWriter for fast_down::file::rand_file_writer_mmap::RandFileWriter

Source§

impl RandWriter for fast_down::file::rand_file_writer_std::RandFileWriter