#[non_exhaustive]pub struct RDBConfig {
pub rdb_snapshot_period: SnapshotPeriod,
pub rdb_snapshot_start_time: Option<Timestamp>,
/* private fields */
}Expand description
Configuration of the RDB based persistence.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rdb_snapshot_period: SnapshotPeriodOptional. Period between RDB snapshots.
rdb_snapshot_start_time: Option<Timestamp>Optional. The time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
Implementations§
Source§impl RDBConfig
impl RDBConfig
pub fn new() -> Self
Sourcepub fn set_rdb_snapshot_period<T: Into<SnapshotPeriod>>(self, v: T) -> Self
pub fn set_rdb_snapshot_period<T: Into<SnapshotPeriod>>(self, v: T) -> Self
Sets the value of rdb_snapshot_period.
Sourcepub fn set_rdb_snapshot_start_time<T>(self, v: T) -> Self
pub fn set_rdb_snapshot_start_time<T>(self, v: T) -> Self
Sets the value of rdb_snapshot_start_time.
Sourcepub fn set_or_clear_rdb_snapshot_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_rdb_snapshot_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of rdb_snapshot_start_time.
Trait Implementations§
impl StructuralPartialEq for RDBConfig
Auto Trait Implementations§
impl Freeze for RDBConfig
impl RefUnwindSafe for RDBConfig
impl Send for RDBConfig
impl Sync for RDBConfig
impl Unpin for RDBConfig
impl UnwindSafe for RDBConfig
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