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: H256The proof-of-work hash.
seed_hash: H256The seed hash.
target: H256The target.
number: Option<u64>The block number: this isn’t always stored.
Trait Implementations
sourceimpl<'a> Deserialize<'a> for Work
impl<'a> Deserialize<'a> for Work
sourcefn 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 StructuralEq for Work
impl StructuralPartialEq for Work
Auto Trait Implementations
impl RefUnwindSafe for Work
impl Send for Work
impl Sync for Work
impl Unpin for Work
impl UnwindSafe for Work
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more