Struct saito_rust::miner::Miner [−][src]
pub struct Miner {
pub is_active: bool,
pub target: SaitoHash,
pub difficulty: u64,
pub wallet_lock: Arc<RwLock<Wallet>>,
// some fields omitted
}
Fields
is_active: bool
target: SaitoHash
difficulty: u64
wallet_lock: Arc<RwLock<Wallet>>
Implementations
pub async fn mine_on_block_until_golden_ticket_found(
&mut self,
block_hash: SaitoHash,
block_difficulty: u64
) -> GoldenTicket
Auto Trait Implementations
impl !RefUnwindSafe for Miner
impl !UnwindSafe for Miner
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more