Struct hypersync_net_types::RollbackGuard
source · pub struct RollbackGuard {
pub block_number: u64,
pub timestamp: i64,
pub hash: Hash,
pub first_block_number: u64,
pub first_parent_hash: Hash,
}
Expand description
Guard for detecting rollbacks
Fields§
§block_number: u64
Block number of last block scanned in memory
timestamp: i64
Block timestamp of last block scanned in memory
hash: Hash
Block hash of last block scanned in memory
first_block_number: u64
Block number of first block scanned in memory
first_parent_hash: Hash
Parent hash of first block scanned in memory
Trait Implementations§
source§impl Clone for RollbackGuard
impl Clone for RollbackGuard
source§fn clone(&self) -> RollbackGuard
fn clone(&self) -> RollbackGuard
Returns a copy 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 RollbackGuard
impl Debug for RollbackGuard
Auto Trait Implementations§
impl Freeze for RollbackGuard
impl RefUnwindSafe for RollbackGuard
impl Send for RollbackGuard
impl Sync for RollbackGuard
impl Unpin for RollbackGuard
impl UnwindSafe for RollbackGuard
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)