pub struct MiningInfo {
pub difficulty: U256,
pub hash_rate: U256,
}Expand description
Mining information structure for the CKB-TUI Terminal module.
Fields§
§difficulty: U256Current network difficulty, represented as a U256 integer.
hash_rate: U256Current network hash rate, represented as a U256 integer (in hashes per second). This approximates the total computational power of the mining network.
Trait Implementations§
Source§impl Clone for MiningInfo
impl Clone for MiningInfo
Source§fn clone(&self) -> MiningInfo
fn clone(&self) -> MiningInfo
Returns a duplicate 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 MiningInfo
impl Debug for MiningInfo
Source§impl Default for MiningInfo
impl Default for MiningInfo
Source§impl<'de> Deserialize<'de> for MiningInfo
impl<'de> Deserialize<'de> for MiningInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for MiningInfo
impl JsonSchema for MiningInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for MiningInfo
impl RefUnwindSafe for MiningInfo
impl Send for MiningInfo
impl Sync for MiningInfo
impl Unpin for MiningInfo
impl UnsafeUnpin for MiningInfo
impl UnwindSafe for MiningInfo
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