pub struct LazyBlockFileCacheEntry { /* private fields */ }
Implementations§
Source§impl LazyBlockFileCacheEntry
impl LazyBlockFileCacheEntry
pub fn new( buffer: BufferSlice, block_files: Rc<RefCell<DataFiles>>, cache_path: PathBuf, ) -> LazyBlockFileCacheEntry
Sourcepub fn get(&self) -> CCPResult<&BlockFileCacheEntry>
pub fn get(&self) -> CCPResult<&BlockFileCacheEntry>
Parse the entry from the buffer and return a reference to it.
Sourcepub fn stream_readers(self) -> CCPResult<Vec<CCPResult<Box<dyn Read>>>>
pub fn stream_readers(self) -> CCPResult<Vec<CCPResult<Box<dyn Read>>>>
Return readers for the actual cache data. Typically, this is a header stream followed by a content stream.
pub fn get_rankings_node(&mut self) -> CCPResult<LazyRankingsNode>
Auto Trait Implementations§
impl Freeze for LazyBlockFileCacheEntry
impl !RefUnwindSafe for LazyBlockFileCacheEntry
impl !Send for LazyBlockFileCacheEntry
impl !Sync for LazyBlockFileCacheEntry
impl Unpin for LazyBlockFileCacheEntry
impl !UnwindSafe for LazyBlockFileCacheEntry
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