Files
Alfis/src/event.rs
T

19 lines
663 B
Rust
Raw Normal View History

#[derive(Clone, PartialEq, Debug)]
pub enum Event {
MinerStarted,
2021-03-25 20:55:09 +01:00
MinerStopped { success: bool, full: bool },
2021-05-24 17:36:07 +02:00
MinerStats { thread: u32, speed: u64, max_diff: u32, target_diff: u32 },
KeyGeneratorStarted,
2021-04-06 11:21:31 +02:00
KeyGeneratorStopped,
KeyCreated { path: String, public: String, hash: String },
KeyLoaded { path: String, public: String, hash: String },
KeySaved { path: String, public: String, hash: String },
NewBlockReceived,
BlockchainChanged { index: u64 },
ActionStopMining,
ActionQuit,
2021-05-21 23:32:46 +02:00
NetworkStatus { blocks: u64, domains: i64, keys: i64, nodes: usize },
Syncing { have: u64, height: u64 },
SyncFinished,
}