Desktop config: ratelimits

This commit is contained in:
Igor Katson 2024-11-20 15:30:56 +00:00
parent 2a7c632b2b
commit 06b50d65ab
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
3 changed files with 7 additions and 2 deletions

View file

@ -7,7 +7,7 @@ use std::num::NonZero;
use std::num::NonZeroU32;
use std::sync::Arc;
#[derive(Default, Serialize, Deserialize, Clone, Copy)]
#[derive(Default, Serialize, Deserialize, Clone, Copy, Debug, PartialEq, Eq)]
pub struct LimitsConfig {
pub upload_bps: Option<NonZero<u32>>,
pub download_bps: Option<NonZero<u32>>,