pub struct Version<V> {
pub value: V,
pub creator_txid: TxId,
pub expirer_txid: AtomicU64,
}Expand description
Represents a single version of a value in the multi-version store.
Fields§
§value: VThe actual value.
creator_txid: TxIdThe ID of the transaction that created this version.
expirer_txid: AtomicU64The ID of the transaction that expired (deleted) this version.
A value of 0 means this version is not expired.
Trait Implementations§
Source§impl<'de, V> Deserialize<'de> for Version<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for Version<V>where
V: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<V> !Freeze for Version<V>
impl<V> RefUnwindSafe for Version<V>where
V: RefUnwindSafe,
impl<V> Send for Version<V>where
V: Send,
impl<V> Sync for Version<V>where
V: Sync,
impl<V> Unpin for Version<V>where
V: Unpin,
impl<V> UnwindSafe for Version<V>where
V: UnwindSafe,
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