#[repr(i32)]pub enum FFlushMode {
FflushUnspecified = 0,
FflushDisabled = 1,
FflushEnabled = 2,
}Variants§
FflushUnspecified = 0
Default: same as FFLUSH_DISABLED.
FflushDisabled = 1
Do not explicitly sync the file to storage after each write pass.
FflushEnabled = 2
Explicitly sync the file to storage (via fdatasync) after each periodic write pass. Increases data durability at the cost of higher disk I/O overhead.
Implementations§
Source§impl FFlushMode
impl FFlushMode
Source§impl FFlushMode
impl FFlushMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Trait Implementations§
Source§impl Clone for FFlushMode
impl Clone for FFlushMode
Source§fn clone(&self) -> FFlushMode
fn clone(&self) -> FFlushMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FFlushMode
impl Debug for FFlushMode
Source§impl Default for FFlushMode
impl Default for FFlushMode
Source§fn default() -> FFlushMode
fn default() -> FFlushMode
Returns the “default value” for a type. Read more
Source§impl From<FFlushMode> for i32
impl From<FFlushMode> for i32
Source§fn from(value: FFlushMode) -> i32
fn from(value: FFlushMode) -> i32
Converts to this type from the input type.
Source§impl Hash for FFlushMode
impl Hash for FFlushMode
Source§impl Ord for FFlushMode
impl Ord for FFlushMode
Source§fn cmp(&self, other: &FFlushMode) -> Ordering
fn cmp(&self, other: &FFlushMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FFlushMode
impl PartialEq for FFlushMode
Source§impl PartialOrd for FFlushMode
impl PartialOrd for FFlushMode
impl Copy for FFlushMode
impl Eq for FFlushMode
impl StructuralPartialEq for FFlushMode
Auto Trait Implementations§
impl Freeze for FFlushMode
impl RefUnwindSafe for FFlushMode
impl Send for FFlushMode
impl Sync for FFlushMode
impl Unpin for FFlushMode
impl UnwindSafe for FFlushMode
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