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

Write to the end of the log, always.

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.

Keep track of segment utilization, and reuse segments when their contents are fully relocated elsewhere.

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]

[src]

Formats the value using the given formatter.

impl PartialEq for SegmentMode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Clone for SegmentMode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more