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]
impl Clone for NullMaterializer
fn clone(&self) -> NullMaterializer
[src]
fn clone(&self) -> NullMaterializer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for NullMaterializer
[src]
impl Debug for NullMaterializer
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for NullMaterializer
[src]
impl PartialEq for NullMaterializer
fn eq(&self, other: &NullMaterializer) -> bool
[src]
fn eq(&self, other: &NullMaterializer) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Materializer for NullMaterializer
[src]
impl Materializer for NullMaterializer
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]
fn new(_: Config, _: &Option<Self::Recovery>) -> Self
Create a new Materializer
with the previously recovered state if any existed. Read more
fn merge(&self, _: &[&Self::PageFrag]) -> Self::PageFrag
[src]
fn merge(&self, _: &[&Self::PageFrag]) -> Self::PageFrag
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]
fn recover(&self, _: &Self::PageFrag) -> Option<Self::Recovery>
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
Auto Trait Implementations
impl Send for NullMaterializer
impl Send for NullMaterializer
impl Sync for NullMaterializer
impl Sync for NullMaterializer