#[non_exhaustive]pub enum Durability {
None,
Eventual,
Immediate,
Paranoid,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
Commits with this durability level will not be persisted to disk unless followed by a commit with a higher durability level.
Note: Pages are only freed during commits with higher durability levels. Exclusively using this durability level will result in rapid growth of the database file.
Eventual
Commits with this durability level have been queued for persitance to disk, and should be
persistent some time after WriteTransaction::commit
returns.
Immediate
Commits with this durability level are guaranteed to be persistent as soon as
WriteTransaction::commit
returns.
Paranoid
This is identical to Durability::Immediate
, but also enables 2-phase commit. New code
should call set_two_phase_commit(true)
directly instead.
Trait Implementations§
Source§impl Clone for Durability
impl Clone for Durability
Source§fn clone(&self) -> Durability
fn clone(&self) -> Durability
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Durability
impl Debug for Durability
impl Copy for Durability
Auto Trait Implementations§
impl Freeze for Durability
impl RefUnwindSafe for Durability
impl Send for Durability
impl Sync for Durability
impl Unpin for Durability
impl UnwindSafe for Durability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
None
: 0 bytesEventual
: 0 bytesImmediate
: 0 bytesParanoid
: 0 bytes