pub struct Miner {
pub id: usize,
pub hash_power: usize,
pub hash_rate: AtomicUsize,
pub shares: Arc<HashMap<usize, usize>>,
pub difficulty: u64,
}Fields§
§id: usize§hash_power: usize§hash_rate: AtomicUsize§difficulty: u64Implementations§
Auto Trait Implementations§
impl !Freeze for Miner
impl RefUnwindSafe for Miner
impl Send for Miner
impl Sync for Miner
impl Unpin for Miner
impl UnwindSafe for Miner
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