pub struct GenerationOpt {
pub max_generations: NonZeroUsize,
/* private fields */
}Expand description
Data can be saved as generations (keeping older values of keys), these options determine how those generations are managed
Fields§
§max_generations: NonZeroUsizeHow many old copies to keep, 1 effectively means no generations, just one value.
Implementations§
Source§impl GenerationOpt
impl GenerationOpt
pub const fn new( max_generations: NonZeroUsize, old_gen_encoding: Encoding, expiration: ExpirationOpt, ) -> Self
Trait Implementations§
Source§impl Clone for GenerationOpt
impl Clone for GenerationOpt
Source§fn clone(&self) -> GenerationOpt
fn clone(&self) -> GenerationOpt
Returns a duplicate 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 GenerationOpt
impl Debug for GenerationOpt
Source§impl Default for GenerationOpt
impl Default for GenerationOpt
impl Copy for GenerationOpt
Auto Trait Implementations§
impl Freeze for GenerationOpt
impl RefUnwindSafe for GenerationOpt
impl Send for GenerationOpt
impl Sync for GenerationOpt
impl Unpin for GenerationOpt
impl UnwindSafe for GenerationOpt
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