pub struct Work {
pub pow_hash: H256,
pub seed_hash: H256,
pub target: H256,
pub number: Option<u64>,
}
Expand description
Miner’s work package
Fields§
§pow_hash: H256
The proof-of-work hash.
seed_hash: H256
The seed hash.
target: H256
The target.
number: Option<u64>
The block number: this isn’t always stored.
Trait Implementations§
Source§impl<'a> Deserialize<'a> for Work
impl<'a> Deserialize<'a> for Work
Source§fn deserialize<D>(deserializer: D) -> Result<Work, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Work, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Work
impl StructuralPartialEq for Work
Auto Trait Implementations§
impl Freeze for Work
impl RefUnwindSafe for Work
impl Send for Work
impl Sync for Work
impl Unpin for Work
impl UnwindSafe for Work
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