17 lines
458 B
Rust
17 lines
458 B
Rust
#[derive(Clone, PartialEq, Debug)]
|
|
pub enum Event {
|
|
MinerStarted,
|
|
MinerStopped,
|
|
KeyGeneratorStarted,
|
|
KeyGeneratorStopped,
|
|
KeyCreated { path: String, public: String },
|
|
KeyLoaded { path: String, public: String },
|
|
KeySaved { path: String, public: String },
|
|
NewBlockReceived,
|
|
BlockchainChanged,
|
|
ActionStopMining,
|
|
NetworkStatus { nodes: usize, blocks: u64 },
|
|
Syncing { have: u64, height: u64 },
|
|
SyncFinished,
|
|
}
|