Enum pickledb::PickleDbDumpPolicy [−][src]
An enum that determines the policy of dumping PickleDb changes into the file
Variants
Never dump any change, file will always remain read-only
Every change will be dumped immediately and automatically to the file
Data won’t be dumped unless the user calls PickleDb::dump() proactively to dump the data
PeriodicDump(Duration)
Changes will be dumped to the file periodically, no sooner than the Duration provided by the user. The way this mechanism works is as follows: each time there is a DB change the last DB dump time is checked. If the time that has passed since the last dump is higher than Duration, changes will be dumped, otherwise changes will not be dumped
Auto Trait Implementations
impl RefUnwindSafe for PickleDbDumpPolicy
impl Send for PickleDbDumpPolicy
impl Sync for PickleDbDumpPolicy
impl Unpin for PickleDbDumpPolicy
impl UnwindSafe for PickleDbDumpPolicy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,