parallel_processor::buckets

Trait LockFreeBucket

Source
pub trait LockFreeBucket {
    type InitData;

    // Required methods
    fn new(path: &Path, data: &Self::InitData, index: usize) -> Self;
    fn write_data(&self, bytes: &[u8]);
    fn get_path(&self) -> PathBuf;
    fn finalize(self);
}

Required Associated Types§

Required Methods§

Source

fn new(path: &Path, data: &Self::InitData, index: usize) -> Self

Source

fn write_data(&self, bytes: &[u8])

Source

fn get_path(&self) -> PathBuf

Source

fn finalize(self)

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§