pub struct Limits {
pub concurrency: IntRange,
pub upload_window: IntRange,
pub download_window: IntRange,
pub chunk_size: IntRange,
pub download_chunk_size: IntRange,
pub max_upload_size: u64,
pub max_retries: IntRange,
pub timeout_ms: IntRange,
}Expand description
Tuning-parameter ranges the server will tolerate.
maxUploadSize is a plain byte cap (no tuning dimension); everything
else is an IntRange. All defaults mirror libfw-core constants so a
server that never overrides anything still advertises sane values.
Fields§
§concurrency: IntRangeCross-file fan-out / global in-flight request cap.
upload_window: IntRangePer-file upload in-flight chunk window.
download_window: IntRangePer-file download in-flight chunk window.
chunk_size: IntRangeUpload chunk size (bytes).
download_chunk_size: IntRangeDownload (byte-range) chunk size (bytes).
max_upload_size: u64Hard cap on a single upload body (bytes).
max_retries: IntRangePer-chunk retry budget.
timeout_ms: IntRangeRequest timeout the server will honor (ms).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Limits
impl<'de> Deserialize<'de> for Limits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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