pub enum FsyncMethod {
Fsync,
WriteoutOnly,
Batch,
}Expand description
Barrier implementation backing core.fsyncMethod, mirroring upstream
enum fsync_method.
Variants§
Fsync
fsync: full data + metadata flush (fsync(2) / FlushFileBuffers).
WriteoutOnly
writeout-only: page-cache writeback without a hardware cache flush.
Batch
batch: writeout-only staging with one hardware flush per operation
(treated identically to FsyncMethod::Fsync outside bulk checkin).
Implementations§
Source§impl FsyncMethod
impl FsyncMethod
Sourcepub const fn platform_default() -> Self
pub const fn platform_default() -> Self
Upstream FSYNC_METHOD_DEFAULT: writeout-only on Apple platforms,
batch on Windows (upstream Min builds flush via FlushFileBuffers),
full fsync elsewhere.
Sourcepub fn from_config(value: Option<&str>) -> Self
pub fn from_config(value: Option<&str>) -> Self
Map a core.fsyncMethod value; unknown or absent values fall back to
the platform default (matching ReferenceFsyncMethod::from_config).
Trait Implementations§
Source§impl Clone for FsyncMethod
impl Clone for FsyncMethod
Source§fn clone(&self) -> FsyncMethod
fn clone(&self) -> FsyncMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FsyncMethod
Source§impl Debug for FsyncMethod
impl Debug for FsyncMethod
impl Eq for FsyncMethod
Source§impl PartialEq for FsyncMethod
impl PartialEq for FsyncMethod
impl StructuralPartialEq for FsyncMethod
Auto Trait Implementations§
impl Freeze for FsyncMethod
impl RefUnwindSafe for FsyncMethod
impl Send for FsyncMethod
impl Sync for FsyncMethod
impl Unpin for FsyncMethod
impl UnsafeUnpin for FsyncMethod
impl UnwindSafe for FsyncMethod
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