pub struct TableScopedPath {
pub table: Option<TableReference>,
pub path: Path,
}Expand description
Key for DefaultListFilesCache
Each entry is scoped to its use within a specific table so that the cache can differentiate between identical paths in different tables, and table-level cache invalidation.
Fields§
§table: Option<TableReference>§path: PathTrait Implementations§
Source§impl CacheAccessor<TableScopedPath, CachedFileList> for DefaultListFilesCache
impl CacheAccessor<TableScopedPath, CachedFileList> for DefaultListFilesCache
Source§fn get(&self, key: &TableScopedPath) -> Option<CachedFileList>
fn get(&self, key: &TableScopedPath) -> Option<CachedFileList>
Get a cached entry if it exists. Read more
Source§fn put(
&self,
key: &TableScopedPath,
value: CachedFileList,
) -> Option<CachedFileList>
fn put( &self, key: &TableScopedPath, value: CachedFileList, ) -> Option<CachedFileList>
Store a value in the cache. Read more
Source§fn remove(&self, k: &TableScopedPath) -> Option<CachedFileList>
fn remove(&self, k: &TableScopedPath) -> Option<CachedFileList>
Remove an entry from the cache, returning the value if it existed.
Source§fn contains_key(&self, k: &TableScopedPath) -> bool
fn contains_key(&self, k: &TableScopedPath) -> bool
Check if the cache contains a specific key.
Source§impl Clone for TableScopedPath
impl Clone for TableScopedPath
Source§fn clone(&self) -> TableScopedPath
fn clone(&self) -> TableScopedPath
Returns a duplicate 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 moreSource§impl Debug for TableScopedPath
impl Debug for TableScopedPath
Source§impl Hash for TableScopedPath
impl Hash for TableScopedPath
Source§impl PartialEq for TableScopedPath
impl PartialEq for TableScopedPath
impl Eq for TableScopedPath
impl StructuralPartialEq for TableScopedPath
Auto Trait Implementations§
impl Freeze for TableScopedPath
impl RefUnwindSafe for TableScopedPath
impl Send for TableScopedPath
impl Sync for TableScopedPath
impl Unpin for TableScopedPath
impl UnsafeUnpin for TableScopedPath
impl UnwindSafe for TableScopedPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more