Enum pagecache::CacheEntry
source · pub enum CacheEntry<M: Send> {
MergedResident(M, Lsn, DiskPtr),
Resident(M, Lsn, DiskPtr),
PartialFlush(Lsn, DiskPtr),
Flush(Lsn, DiskPtr),
Free(Lsn, DiskPtr),
}
Expand description
Points to either a memory location or a disk location to page-in data from.
Variants
MergedResident(M, Lsn, DiskPtr)
A cache item that contains the most recent fully-merged page state, also in secondary storage.
Resident(M, Lsn, DiskPtr)
A cache item that is in memory, and also in secondary storage.
PartialFlush(Lsn, DiskPtr)
A cache item that is present in secondary storage.
Flush(Lsn, DiskPtr)
A cache item that is present in secondary storage, and is the base segment of a page.
Free(Lsn, DiskPtr)
A freed page tombstone.
Trait Implementations
sourceimpl<M: Clone + Send> Clone for CacheEntry<M>
impl<M: Clone + Send> Clone for CacheEntry<M>
sourcefn clone(&self) -> CacheEntry<M>
fn clone(&self) -> CacheEntry<M>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<M: Debug + Send> Debug for CacheEntry<M>
impl<M: Debug + Send> Debug for CacheEntry<M>
sourceimpl<M: PartialEq + Send> PartialEq<CacheEntry<M>> for CacheEntry<M>
impl<M: PartialEq + Send> PartialEq<CacheEntry<M>> for CacheEntry<M>
sourcefn eq(&self, other: &CacheEntry<M>) -> bool
fn eq(&self, other: &CacheEntry<M>) -> bool
impl<M: Send> StructuralPartialEq for CacheEntry<M>
Auto Trait Implementations
impl<M> RefUnwindSafe for CacheEntry<M>where
M: RefUnwindSafe,
impl<M> Send for CacheEntry<M>
impl<M> Sync for CacheEntry<M>where
M: Sync,
impl<M> Unpin for CacheEntry<M>where
M: Unpin,
impl<M> UnwindSafe for CacheEntry<M>where
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more