pub struct Inventory {
pub entries: EntryCounts,
pub schema_version: Option<u32>,
pub identity: Option<CacheIdentity>,
}Expand description
What a whole cache holds, as Store::inventory counts it.
Fields§
§entries: EntryCountsThe entries of every family but the database facts: the schema version and the cache identity.
schema_version: Option<u32>The schema version stored in the database, or None when there is no
database or it holds no readable version.
identity: Option<CacheIdentity>The cache identity stored in the database, or None when there is no
database or it holds no readable identity.
Trait Implementations§
impl Eq for Inventory
impl StructuralPartialEq for Inventory
Auto Trait Implementations§
impl Freeze for Inventory
impl RefUnwindSafe for Inventory
impl Send for Inventory
impl Sync for Inventory
impl Unpin for Inventory
impl UnsafeUnpin for Inventory
impl UnwindSafe for Inventory
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.