pub enum VersionKind {
Last,
First,
Index(i64),
}Expand description
References certain states within a single block.
Note: Not all methods that take a version will support all version kinds, the versions here are included for completeness and to document the retrieval behaviour that is possible with the storage layout. Please refer to the individual implementation for information about which version kinds it supports.
Variants§
Last
Represents the final state within a specific block. Essentially, it retrieves the state subsequent to the execution of the last transaction executed in that block.
First
Represents the initial state of a specific block. In other words, it is the state before any transaction has been executed within that block.
Index(i64)
Represents a specific transactions indexed position within a block. It includes the state after executing the transaction at that index.
Trait Implementations§
Source§impl Clone for VersionKind
impl Clone for VersionKind
Source§fn clone(&self) -> VersionKind
fn clone(&self) -> VersionKind
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VersionKind
impl Debug for VersionKind
Source§impl Default for VersionKind
impl Default for VersionKind
Source§fn default() -> VersionKind
fn default() -> VersionKind
Auto Trait Implementations§
impl Freeze for VersionKind
impl RefUnwindSafe for VersionKind
impl Send for VersionKind
impl Sync for VersionKind
impl Unpin for VersionKind
impl UnwindSafe for VersionKind
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)