Enum pagecache::SegmentMode [−][src]
pub enum SegmentMode { Linear, Gc, }
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
impl Debug for SegmentMode
[src]
impl Debug for SegmentMode
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 SegmentMode
[src]
impl PartialEq for SegmentMode
fn eq(&self, other: &SegmentMode) -> bool
[src]
fn eq(&self, other: &SegmentMode) -> 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
1.0.0
[src]This method tests for !=
.
impl Clone for SegmentMode
[src]
impl Clone for SegmentMode
fn clone(&self) -> SegmentMode
[src]
fn clone(&self) -> SegmentMode
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for SegmentMode
impl Send for SegmentMode
impl Sync for SegmentMode
impl Sync for SegmentMode