Files
Alfis/src/event.rs
T

20 lines
658 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-04-23 13:20:26 +02:00
MinerStats { thread: usize, 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 },
2021-04-27 17:10:05 +02:00
ZonesChanged,
NewBlockReceived,
BlockchainChanged { index: u64 },
ActionStopMining,
ActionQuit,
NetworkStatus { nodes: usize, blocks: u64 },
Syncing { have: u64, height: u64 },
SyncFinished,
}