Struct fathom_web3::types::Work
source · [−]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
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.