pub struct Versioned {
pub value: Vec<u8>,
pub version: u64,
}Expand description
A stored value and its version. Versions start at 1 and increase by one per write of the key.
Fields§
§value: Vec<u8>§version: u64Trait Implementations§
impl Eq for Versioned
impl StructuralPartialEq for Versioned
Auto Trait Implementations§
impl Forget for Versioned
impl Freeze for Versioned
impl Move for Versioned
impl RefUnwindSafe for Versioned
impl Send for Versioned
impl Sync for Versioned
impl Unpin for Versioned
impl UnsafeUnpin for Versioned
impl UnwindSafe for Versioned
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.