forked from torrust/torrust-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstats.rs
More file actions
21 lines (20 loc) · 651 Bytes
/
Copy pathstats.rs
File metadata and controls
21 lines (20 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
pub struct Stats {
pub torrents: u32,
pub seeders: u32,
pub completed: u32,
pub leechers: u32,
pub tcp4_connections_handled: u32,
pub tcp4_announces_handled: u32,
pub tcp4_scrapes_handled: u32,
pub tcp6_connections_handled: u32,
pub tcp6_announces_handled: u32,
pub tcp6_scrapes_handled: u32,
pub udp4_connections_handled: u32,
pub udp4_announces_handled: u32,
pub udp4_scrapes_handled: u32,
pub udp6_connections_handled: u32,
pub udp6_announces_handled: u32,
pub udp6_scrapes_handled: u32,
}