Enum pagecache::SegmentMode
source · pub enum SegmentMode {
Linear,
Gc,
}
Expand description
The log may be configured to write data in several different ways, depending on the constraints of the system using it.
Variants
Linear
Write to the end of the log, always.
Gc
Keep track of segment utilization, and reuse segments when their contents are fully relocated elsewhere. Will try to copy data out of segments once they reach a configurable threshold.
Trait Implementations
sourceimpl Clone for SegmentMode
impl Clone for SegmentMode
sourcefn clone(&self) -> SegmentMode
fn clone(&self) -> SegmentMode
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 SegmentMode
impl Debug for SegmentMode
sourceimpl<'de> Deserialize<'de> for SegmentMode
impl<'de> Deserialize<'de> for SegmentMode
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 PartialEq<SegmentMode> for SegmentMode
impl PartialEq<SegmentMode> for SegmentMode
sourcefn eq(&self, other: &SegmentMode) -> bool
fn eq(&self, other: &SegmentMode) -> bool
sourceimpl Serialize for SegmentMode
impl Serialize for SegmentMode
impl StructuralPartialEq for SegmentMode
Auto Trait Implementations
impl RefUnwindSafe for SegmentMode
impl Send for SegmentMode
impl Sync for SegmentMode
impl Unpin for SegmentMode
impl UnwindSafe for SegmentMode
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