pub struct Version(pub BlockOrTimestamp, pub VersionKind);Expand description
A version desribes the state of the DB at a exact point in time. See the module level docs for more information on how versioning works.
Tuple Fields§
§0: BlockOrTimestamp§1: VersionKindImplementations§
Source§impl Version
impl Version
pub fn from_block_number(chain: Chain, number: i64) -> Self
pub fn from_ts(ts: NaiveDateTime) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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