Enum redb::Durability
source · [−]pub enum Durability {
None,
Eventual,
Immediate,
}
Variants
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 function may result in Error::OutOfSpace.
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.
Trait Implementations
sourceimpl Clone for Durability
impl Clone for Durability
sourcefn clone(&self) -> Durability
fn clone(&self) -> Durability
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Durability
impl Debug for Durability
impl Copy for Durability
Auto Trait Implementations
impl RefUnwindSafe for Durability
impl Send for Durability
impl Sync for Durability
impl Unpin for Durability
impl UnwindSafe for Durability
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more