Struct pagecache::NullMaterializer
source · pub struct NullMaterializer;
Expand description
A materializer for things that have nothing to
materialize or recover, like a standalone Log
.
Trait Implementations
sourceimpl Clone for NullMaterializer
impl Clone for NullMaterializer
sourcefn clone(&self) -> NullMaterializer
fn clone(&self) -> NullMaterializer
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 Debug for NullMaterializer
impl Debug for NullMaterializer
sourceimpl<'de> Deserialize<'de> for NullMaterializer
impl<'de> Deserialize<'de> for NullMaterializer
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Materializer for NullMaterializer
impl Materializer for NullMaterializer
type PageFrag = ()
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
sourcefn new(_: Config, _: &Option<Self::Recovery>) -> Self
fn new(_: Config, _: &Option<Self::Recovery>) -> Self
Create a new
Materializer
with the previously recovered
state if any existed. Read moresourcefn merge(&self, _: &[&Self::PageFrag]) -> Self::PageFrag
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 moresourcefn recover(&self, _: &Self::PageFrag) -> Option<Self::Recovery>
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
sourcefn size_in_bytes(&self, _: &Self::PageFrag) -> usize
fn size_in_bytes(&self, _: &Self::PageFrag) -> usize
Used to determine the size of the value for caching purposes.
sourceimpl PartialEq<NullMaterializer> for NullMaterializer
impl PartialEq<NullMaterializer> for NullMaterializer
sourcefn eq(&self, other: &NullMaterializer) -> bool
fn eq(&self, other: &NullMaterializer) -> bool
sourceimpl Serialize for NullMaterializer
impl Serialize for NullMaterializer
impl StructuralPartialEq for NullMaterializer
Auto Trait Implementations
impl RefUnwindSafe for NullMaterializer
impl Send for NullMaterializer
impl Sync for NullMaterializer
impl Unpin for NullMaterializer
impl UnwindSafe for NullMaterializer
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