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

This page contains data and has been prepared for presentation to the caller by the PageCache's Materializer.

This page has been Freed

This page has been allocated, but will become Free after restarting the system unless some data gets written to it.

This page was never allocated.

Methods

impl<'a, P> PageGet<'a, P> where
    P: DeserializeOwned + Serialize + Send + Sync
[src]

[src]

unwraps the PageGet into its inner Materialized form.

Panics

Panics if it is a variant other than Materialized.

[src]

Returns true if the PageGet is Materialized.

[src]

Returns true if the PageGet is Free.

[src]

Returns true if the PageGet is Allocated.

[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]

[src]

Returns a copy of the value. Read more

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]

[src]

Formats the value using the given formatter.

impl<'a, PageFrag: PartialEq> PartialEq for PageGet<'a, PageFrag> where
    PageFrag: 'static + DeserializeOwned + Serialize + Send + Sync
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a, P> Send for PageGet<'a, P> where
    P: DeserializeOwned + Serialize + Send + Sync
[src]

impl<'a, P> Sync for PageGet<'a, P> where
    P: DeserializeOwned + Serialize + Send + Sync
[src]