pub struct JournalConfig {
pub path: PathBuf,
pub durability: JournalDurability,
pub compaction_threshold_events: u64,
}Expand description
Configuration for the redb runtime event journal.
Fields§
§path: PathBufPath to the .db file. Created if it does not exist.
durability: JournalDurabilityDurability mode. Default: immediate.
compaction_threshold_events: u64Trigger compaction after this many events. Default: 10_000.
Trait Implementations§
Source§impl Clone for JournalConfig
impl Clone for JournalConfig
Source§fn clone(&self) -> JournalConfig
fn clone(&self) -> JournalConfig
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 JournalConfig
impl Debug for JournalConfig
Source§impl<'de> Deserialize<'de> for JournalConfig
impl<'de> Deserialize<'de> for JournalConfig
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 From<&JournalConfig> for RedbJournalOptions
impl From<&JournalConfig> for RedbJournalOptions
Source§fn from(cfg: &JournalConfig) -> Self
fn from(cfg: &JournalConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for JournalConfig
impl PartialEq for JournalConfig
Source§fn eq(&self, other: &JournalConfig) -> bool
fn eq(&self, other: &JournalConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JournalConfig
Auto Trait Implementations§
impl Freeze for JournalConfig
impl RefUnwindSafe for JournalConfig
impl Send for JournalConfig
impl Sync for JournalConfig
impl Unpin for JournalConfig
impl UnsafeUnpin for JournalConfig
impl UnwindSafe for JournalConfig
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