pub enum MiningEvent {
LongestChainBlockAdded {
hash: SaitoHash,
difficulty: u64,
block_id: BlockId,
},
}
Variants§
Trait Implementations§
Source§impl Debug for MiningEvent
impl Debug for MiningEvent
Source§impl ProcessEvent<MiningEvent> for MiningThread
impl ProcessEvent<MiningEvent> for MiningThread
Source§fn process_network_event<'life0, 'async_trait>(
&'life0 mut self,
_event: NetworkEvent,
) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_network_event<'life0, 'async_trait>(
&'life0 mut self,
_event: NetworkEvent,
) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Processes an event coming from other peers via network controller Read more
Source§fn process_timer_event<'life0, 'async_trait>(
&'life0 mut self,
_duration: Duration,
) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_timer_event<'life0, 'async_trait>(
&'life0 mut self,
_duration: Duration,
) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Triggered with each timer tick. duration will vary due to other processing tasks in the same thread. Read more
Source§fn process_event<'life0, 'async_trait>(
&'life0 mut self,
event: MiningEvent,
) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_event<'life0, 'async_trait>(
&'life0 mut self,
event: MiningEvent,
) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Processes the incoming events from other threads/controllers. Read more
fn on_init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_stat_interval<'life0, 'async_trait>(
&'life0 mut self,
current_time: Timestamp,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_ready_to_process(&self) -> bool
Auto Trait Implementations§
impl Freeze for MiningEvent
impl RefUnwindSafe for MiningEvent
impl Send for MiningEvent
impl Sync for MiningEvent
impl Unpin for MiningEvent
impl UnwindSafe for MiningEvent
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