Merge pull request #360 from KevinT3Hu/main
fix: make SessionStatsSnapshot fields pub
This commit is contained in:
commit
77c0cc98d1
1 changed files with 6 additions and 6 deletions
|
|
@ -8,12 +8,12 @@ use super::SessionStats;
|
||||||
|
|
||||||
#[derive(Debug, Serialize)]
|
#[derive(Debug, Serialize)]
|
||||||
pub struct SessionStatsSnapshot {
|
pub struct SessionStatsSnapshot {
|
||||||
fetched_bytes: u64,
|
pub fetched_bytes: u64,
|
||||||
uploaded_bytes: u64,
|
pub uploaded_bytes: u64,
|
||||||
download_speed: Speed,
|
pub download_speed: Speed,
|
||||||
upload_speed: Speed,
|
pub upload_speed: Speed,
|
||||||
peers: AggregatePeerStats,
|
pub peers: AggregatePeerStats,
|
||||||
uptime_seconds: u64,
|
pub uptime_seconds: u64,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<&SessionStats> for SessionStatsSnapshot {
|
impl From<&SessionStats> for SessionStatsSnapshot {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue