Trait Writer

Source
pub trait Writer: Sync {
    // Required methods
    fn is_cached(&self, hash: &Hash) -> bool;
    fn sink(&mut self, hash: &Hash) -> BoxProcessor;
    fn group<I: Iterator<Item = Entry>>(
        &mut self,
        name: &str,
        hash: &Hash,
        entries: I,
    );
    fn buffer<F: FnOnce(Box<dyn BufferReader>) -> Result<Vec<ConvertedBuffer>, E>, E>(
        &self,
        path: &str,
        sample_rate: u64,
        init: F,
    ) -> Result<Vec<CachedBuffer>, E>;
}

Required Methods§

Source

fn is_cached(&self, hash: &Hash) -> bool

Source

fn sink(&mut self, hash: &Hash) -> BoxProcessor

Source

fn group<I: Iterator<Item = Entry>>( &mut self, name: &str, hash: &Hash, entries: I, )

Source

fn buffer<F: FnOnce(Box<dyn BufferReader>) -> Result<Vec<ConvertedBuffer>, E>, E>( &self, path: &str, sample_rate: u64, init: F, ) -> Result<Vec<CachedBuffer>, E>

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§