pub enum AuditFsyncMode {
None,
PerBatch,
PerRecord,
}Expand description
fsync policy applied to the AUDIT spool after each append. Spec 11 § 6.4 + decision D6-5.
Variants§
None
No fsync after writes. Fastest; lossy under host crash.
Suitable only for non-compliance dev / soak runs.
PerBatch
Fsync after each batched append (default). Bounds the durability window to one batch (~64 records) while keeping steady-state throughput near zero-fsync.
PerRecord
Fsync after every single record. Strictest durability, lowest throughput. Pick this when AUDIT volume is low and regulatory compliance demands per-record persistence.
Trait Implementations§
Source§impl Clone for AuditFsyncMode
impl Clone for AuditFsyncMode
Source§fn clone(&self) -> AuditFsyncMode
fn clone(&self) -> AuditFsyncMode
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 moreSource§impl Debug for AuditFsyncMode
impl Debug for AuditFsyncMode
Source§impl Default for AuditFsyncMode
impl Default for AuditFsyncMode
Source§fn default() -> AuditFsyncMode
fn default() -> AuditFsyncMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuditFsyncMode
impl<'de> Deserialize<'de> for AuditFsyncMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AuditFsyncMode
impl PartialEq for AuditFsyncMode
Source§fn eq(&self, other: &AuditFsyncMode) -> bool
fn eq(&self, other: &AuditFsyncMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuditFsyncMode
impl Serialize for AuditFsyncMode
impl Copy for AuditFsyncMode
impl Eq for AuditFsyncMode
impl StructuralPartialEq for AuditFsyncMode
Auto Trait Implementations§
impl Freeze for AuditFsyncMode
impl RefUnwindSafe for AuditFsyncMode
impl Send for AuditFsyncMode
impl Sync for AuditFsyncMode
impl Unpin for AuditFsyncMode
impl UnsafeUnpin for AuditFsyncMode
impl UnwindSafe for AuditFsyncMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.