pub struct MiningSnapshot {
pub network: Network,
pub generation: MiningGeneration,
pub tip_hash: BlockHash,
pub tip_height: Height,
pub tip_time: BlockTime,
pub parent_median_time: BlockTime,
pub next_tree_root: TreeRoot,
pub expected_bits: CompactTarget,
}Fields§
§network: Network§generation: MiningGeneration§tip_hash: BlockHash§tip_height: Height§tip_time: BlockTime§parent_median_time: BlockTime§next_tree_root: TreeRoot§expected_bits: CompactTargetImplementations§
Source§impl MiningSnapshot
impl MiningSnapshot
pub fn next_height(self) -> Result<Height, MiningError>
Trait Implementations§
Source§impl Clone for MiningSnapshot
impl Clone for MiningSnapshot
Source§fn clone(&self) -> MiningSnapshot
fn clone(&self) -> MiningSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MiningSnapshot
Source§impl Debug for MiningSnapshot
impl Debug for MiningSnapshot
impl Eq for MiningSnapshot
Source§impl PartialEq for MiningSnapshot
impl PartialEq for MiningSnapshot
impl StructuralPartialEq for MiningSnapshot
Auto Trait Implementations§
impl Freeze for MiningSnapshot
impl RefUnwindSafe for MiningSnapshot
impl Send for MiningSnapshot
impl Sync for MiningSnapshot
impl Unpin for MiningSnapshot
impl UnsafeUnpin for MiningSnapshot
impl UnwindSafe for MiningSnapshot
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