You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alfis/src/event.rs

20 lines
690 B
Rust

#[derive(Clone, PartialEq, Debug)]
pub enum Event {
MinerStarted,
MinerStopped { success: bool, full: bool },
MinerStats { thread: u32, speed: u64, max_diff: u32, target_diff: u32 },
KeyGeneratorStarted,
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,
NetworkStatus { blocks: u64, domains: i64, keys: i64, nodes: usize },
Syncing { have: u64, height: u64 },
SyncFinished,
Error { text: String }
}