Struct stratum_server::Miner
source · pub struct Miner { /* private fields */ }Implementations§
source§impl Miner
impl Miner
pub fn new( connection_id: ConnectionID, worker_id: Uuid, sid: SessionID, client: Option<String>, name: Option<String>, config_manager: ConfigManager, difficulty: DifficultySettings ) -> Self
pub fn consider_ban(&self)
pub fn difficulties(&self) -> Difficulties
pub fn update_difficulty(&self) -> Option<Difficulty>
pub fn set_difficulty(&self, difficulty: Difficulty)
pub fn connection_id(&self) -> ConnectionID
pub fn worker_id(&self) -> Uuid
pub fn session_id(&self) -> SessionID
Trait Implementations§
Auto Trait Implementations§
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