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§
source§impl Clone for Durability
impl Clone for Durability
source§fn clone(&self) -> Durability
fn clone(&self) -> Durability
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more