Skip to main content

ppaass_v3_common/
event.rs

1use chrono::{DateTime, Local};
2pub struct UploadSpeedEvent {
3    pub speed: u64,
4}
5pub struct DownloadSpeedEvent {
6    pub speed: u64,
7}
8
9#[derive(Debug)]
10pub enum LogEventLevel {
11    Error,
12    Info,
13    Warning,
14    Debug,
15    Trace,
16}
17
18#[derive(Debug)]
19pub struct LogEvent {
20    pub level: LogEventLevel,
21    pub timestamp: DateTime<Local>,
22    pub message: String,
23}