Struct pagecache::NullMaterializer
[−]
[src]
pub struct NullMaterializer;
A materializer for things that have nothing to
materialize or recover, like a standalone Log
.
Trait Implementations
impl Clone for NullMaterializer
[src]
fn clone(&self) -> NullMaterializer
[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 Debug for NullMaterializer
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for NullMaterializer
[src]
fn eq(&self, __arg_0: &NullMaterializer) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Materializer for NullMaterializer
[src]
type PageFrag = ()
The possibly fragmented page, written to log storage sequentially, and read in parallel from multiple locations on disk when serving a request to read the page. These will be merged to a single version at read time, and possibly cached. Read more
type Recovery = ()
The higher-level recovery state, as described by Materializer::recover
Read more
fn new(_: Config, _: &Option<Self::Recovery>) -> Self
[src]
Create a new Materializer
with the previously recovered state if any existed. Read more
fn merge(&self, _: &[&Self::PageFrag]) -> Self::PageFrag
[src]
Used to merge chains of partial pages into a form that is useful for the PageCache
owner. Read more
fn recover(&self, _: &Self::PageFrag) -> Option<Self::Recovery>
[src]
Used to feed custom recovery information back to a higher-level abstraction during startup. For example, a B-Link tree must know what the current root node is before it can start serving requests. Read more