pub struct DiffBlock {
pub block_height: i64,
pub block_hash: Hash,
pub difficulty: u64,
pub time: u64,
pub duration: u64,
pub secondary_scaling: u32,
pub is_secondary: bool,
}
Last n blocks for difficulty calculation purposes
Block height (can be negative for a new chain)
Block hash (may be synthetic for a new chain)
Time block was found (epoch seconds)
Duration since previous block (epoch seconds)
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> DebugAny for T where T: Any + Debug, | |
impl<T> CloneAny for T where T: Clone + Any, | |
impl<T> UnsafeAny for T where T: Any, | |
impl<T> SafeBorrow for T where T: ?Sized, | |
Given ptr
, which was obtained from a prior call to Self::borrow()
, return a value with the same nominal lifetime which is guaranteed to survive mutations to Self
. Read more
impl<'a, T> DefaultFeatures for T where T: 'a + Send + Sync + Clone, | |
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
impl<'a, T> NonSyncFeatures for T where T: 'a + Clone, | |
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more