[][src]Enum pickledb::PickleDbDumpPolicy

pub enum PickleDbDumpPolicy {
    NeverDump,
    AutoDump,
    DumpUponRequest,
    PeriodicDump(Duration),
}

An enum that determines the policy of dumping PickleDb changes into the file

Variants

NeverDump

Never dump any change, file will always remain read-only

AutoDump

Every change will be dumped immediately and automatically to the file

DumpUponRequest

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]