pub struct Directory { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Storage for Directory
impl Storage for Directory
type Output = Output
type Reader = BufReader<File>
type Group = GroupReader
type Sink = Reader<<Directory as Storage>::Reader>
fn create(&self) -> Self::Output
fn open_raw(&self, hash: &Hash) -> Result<Self::Reader>
fn open_group(&self, hash: &Hash) -> Result<Self::Group>
fn open_sink(&self, hash: &Hash) -> Result<Self::Sink>
Source§impl Writer for Directory
impl Writer for Directory
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>
Auto Trait Implementations§
impl Freeze for Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnwindSafe for Directory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more