Enum pagecache::SegmentMode
[−]
[src]
pub enum SegmentMode { Linear, PunchedLinear, Reuse, 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.
PunchedLinear
Like linear, but also keep track of utilization, and try to use filesystem hole punching on empty segments. This is only supported on linux with filesystems that support hole punching.
Reuse
Keep track of segment utilization, and reuse segments when their contents are fully relocated elsewhere.
Gc
Like Reuse, but also will try to copy data out of segments once they reach a configurable threshold.
Trait Implementations
impl Debug for SegmentMode
[src]
impl PartialEq for SegmentMode
[src]
fn eq(&self, __arg_0: &SegmentMode) -> 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 Clone for SegmentMode
[src]
fn clone(&self) -> SegmentMode
[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