Enum aerospike::policy::GenerationPolicy
source · pub enum GenerationPolicy {
None,
ExpectGenEqual,
ExpectGenGreater,
}
Expand description
GenerationPolicy
determines how to handle record writes based on record generation.
Variants§
None
None means: Do not use record generation to restrict writes.
ExpectGenEqual
ExpectGenEqual means: Update/delete record if expected generation is equal to server generation. Otherwise, fail.
ExpectGenGreater
ExpectGenGreater means: Update/delete record if expected generation greater than the server generation. Otherwise, fail. This is useful for restore after backup.
Trait Implementations§
source§impl Clone for GenerationPolicy
impl Clone for GenerationPolicy
source§fn clone(&self) -> GenerationPolicy
fn clone(&self) -> GenerationPolicy
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 moresource§impl Debug for GenerationPolicy
impl Debug for GenerationPolicy
source§impl Default for GenerationPolicy
impl Default for GenerationPolicy
source§fn default() -> GenerationPolicy
fn default() -> GenerationPolicy
Returns the “default value” for a type. Read more
source§impl PartialEq<GenerationPolicy> for GenerationPolicy
impl PartialEq<GenerationPolicy> for GenerationPolicy
source§fn eq(&self, other: &GenerationPolicy) -> bool
fn eq(&self, other: &GenerationPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GenerationPolicy
Auto Trait Implementations§
impl RefUnwindSafe for GenerationPolicy
impl Send for GenerationPolicy
impl Sync for GenerationPolicy
impl Unpin for GenerationPolicy
impl UnwindSafe for GenerationPolicy
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
Mutably borrows from an owned value. Read more