Enum aerospike::policy::GenerationPolicy
[−]
[src]
pub enum GenerationPolicy { None, ExpectGenEqual, ExpectGenGreater, }
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
impl Debug for GenerationPolicy
[src]
impl PartialEq for GenerationPolicy
[src]
fn eq(&self, __arg_0: &GenerationPolicy) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Default for GenerationPolicy
[src]
fn default() -> GenerationPolicy
[src]
Returns the "default value" for a type. Read more