pub enum JournalStagingMode {
ZeroFill,
Allocate,
}Expand description
CLI spelling of melin_journal::StagingMode.
A separate enum rather than a clap::ValueEnum derive on the journal
type: melin-journal has no clap dependency and should not acquire
one for a flag: the crate is a library first, and its callers are not
all command-line servers.
Variants§
ZeroFill
Pre-write every staged segment so appends generate no extent-conversion metadata. Costs one extra pass over each segment in device bandwidth.
Allocate
Allocate staged extents without materialising them. No staging
bandwidth; appends convert extents and fdatasync periodically
forces the filesystem log.
Trait Implementations§
Source§impl Clone for JournalStagingMode
impl Clone for JournalStagingMode
impl Copy for JournalStagingMode
Source§impl Debug for JournalStagingMode
impl Debug for JournalStagingMode
Source§impl Default for JournalStagingMode
impl Default for JournalStagingMode
impl Eq for JournalStagingMode
Source§impl From<JournalStagingMode> for StagingMode
impl From<JournalStagingMode> for StagingMode
Source§fn from(m: JournalStagingMode) -> Self
fn from(m: JournalStagingMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for JournalStagingMode
impl PartialEq for JournalStagingMode
impl StructuralPartialEq for JournalStagingMode
Source§impl ValueEnum for JournalStagingMode
impl ValueEnum for JournalStagingMode
Auto Trait Implementations§
impl Freeze for JournalStagingMode
impl RefUnwindSafe for JournalStagingMode
impl Send for JournalStagingMode
impl Sync for JournalStagingMode
impl Unpin for JournalStagingMode
impl UnsafeUnpin for JournalStagingMode
impl UnwindSafe for JournalStagingMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more