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 needs_ban(&self) -> bool
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 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