Struct lance_core::cache::FileMetadataCache
source · pub struct FileMetadataCache { /* private fields */ }Expand description
Cache for various metadata about files.
The cache is keyed by the file path and the type of metadata.
Implementations§
source§impl FileMetadataCache
impl FileMetadataCache
pub fn new(capacity: usize) -> Self
pub fn get<T: Send + Sync + 'static>(&self, path: &Path) -> Option<Arc<T>>
pub fn insert<T: Send + Sync + 'static>(&self, path: Path, metadata: Arc<T>)
Trait Implementations§
source§impl Clone for FileMetadataCache
impl Clone for FileMetadataCache
source§fn clone(&self) -> FileMetadataCache
fn clone(&self) -> FileMetadataCache
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileMetadataCache
impl !RefUnwindSafe for FileMetadataCache
impl Send for FileMetadataCache
impl Sync for FileMetadataCache
impl Unpin for FileMetadataCache
impl !UnwindSafe for FileMetadataCache
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