pub struct ThrottleArgs {
pub upload_bytes_per_second: Option<i64>,
pub download_bytes_per_second: Option<i64>,
pub read_ops_per_second: Option<i64>,
pub write_ops_per_second: Option<i64>,
}Expand description
Repository throttling limits applied via kopia repository throttle set
(ADR-0005 §13(e)). Each None leaves kopia’s current value untouched. Pure args
builder so it’s unit-testable; an all-None instance yields no flags.
Fields§
§upload_bytes_per_second: Option<i64>--upload-bytes-per-second.
download_bytes_per_second: Option<i64>--download-bytes-per-second.
read_ops_per_second: Option<i64>--read-requests-per-second.
write_ops_per_second: Option<i64>--write-requests-per-second.
Implementations§
Trait Implementations§
Source§impl Clone for ThrottleArgs
impl Clone for ThrottleArgs
Source§fn clone(&self) -> ThrottleArgs
fn clone(&self) -> ThrottleArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThrottleArgs
impl Debug for ThrottleArgs
Source§impl Default for ThrottleArgs
impl Default for ThrottleArgs
Source§fn default() -> ThrottleArgs
fn default() -> ThrottleArgs
Returns the “default value” for a type. Read more
Source§impl PartialEq for ThrottleArgs
impl PartialEq for ThrottleArgs
Source§fn eq(&self, other: &ThrottleArgs) -> bool
fn eq(&self, other: &ThrottleArgs) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ThrottleArgs
impl StructuralPartialEq for ThrottleArgs
Auto Trait Implementations§
impl Freeze for ThrottleArgs
impl RefUnwindSafe for ThrottleArgs
impl Send for ThrottleArgs
impl Sync for ThrottleArgs
impl Unpin for ThrottleArgs
impl UnsafeUnpin for ThrottleArgs
impl UnwindSafe for ThrottleArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more