Enum pagecache::PageGet
[−]
[src]
pub enum PageGet<'a, PageFrag> where
PageFrag: 'static + DeserializeOwned + Serialize + Send + Sync, { Materialized(PageFrag, PagePtr<'a, PageFrag>), Free, Allocated, Unallocated, }
The result of a get
call in the PageCache
.
Variants
Materialized(PageFrag, PagePtr<'a, PageFrag>)
This page contains data and has been prepared
for presentation to the caller by the PageCache
's
Materializer
.
Free
This page has been Freed
Allocated
This page has been allocated, but will become Free after restarting the system unless some data gets written to it.
Unallocated
This page was never allocated.
Methods
impl<'a, P> PageGet<'a, P> where
P: DeserializeOwned + Serialize + Send + Sync,
[src]
P: DeserializeOwned + Serialize + Send + Sync,
fn unwrap(self) -> (P, PagePtr<'a, P>)
[src]
unwraps the PageGet
into its inner Materialized
form.
Panics
Panics if it is a variant other than Materialized.
fn is_materialized(&self) -> bool
[src]
Returns true if the PageGet
is Materialized
.
fn is_free(&self) -> bool
[src]
Returns true if the PageGet
is Free
.
fn is_allocated(&self) -> bool
[src]
Returns true if the PageGet
is Allocated
.
fn is_unallocated(&self) -> bool
[src]
Returns true if the PageGet
is Unallocated
.
Trait Implementations
impl<'a, PageFrag: Clone> Clone for PageGet<'a, PageFrag> where
PageFrag: 'static + DeserializeOwned + Serialize + Send + Sync,
[src]
PageFrag: 'static + DeserializeOwned + Serialize + Send + Sync,
fn clone(&self) -> PageGet<'a, PageFrag>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, PageFrag: Debug> Debug for PageGet<'a, PageFrag> where
PageFrag: 'static + DeserializeOwned + Serialize + Send + Sync,
[src]
PageFrag: 'static + DeserializeOwned + Serialize + Send + Sync,
impl<'a, PageFrag: PartialEq> PartialEq for PageGet<'a, PageFrag> where
PageFrag: 'static + DeserializeOwned + Serialize + Send + Sync,
[src]
PageFrag: 'static + DeserializeOwned + Serialize + Send + Sync,
fn eq(&self, __arg_0: &PageGet<'a, PageFrag>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PageGet<'a, PageFrag>) -> bool
[src]
This method tests for !=
.
impl<'a, P> Send for PageGet<'a, P> where
P: DeserializeOwned + Serialize + Send + Sync,
[src]
P: DeserializeOwned + Serialize + Send + Sync,
impl<'a, P> Sync for PageGet<'a, P> where
P: DeserializeOwned + Serialize + Send + Sync,
[src]
P: DeserializeOwned + Serialize + Send + Sync,