pub struct Limits {
pub concurrency: IntRange,
pub upload_window: IntRange,
pub download_window: IntRange,
pub chunk_size: IntRange,
pub max_upload_size: u64,
pub max_retries: u64,
pub timeout_ms: u64,
}Expand description
Tuning-parameter ranges the server will tolerate.
maxUploadSize, maxRetries and timeoutMs are plain scalar limits; the
rest are range hints with the server-chosen default first in the payload.
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).
max_upload_size: u64Hard cap on a single upload body (bytes).
Advisory and conservative by default — ServerState::capabilities
clamps it to the limit the server actually enforces, so the
advertisement can never overstate it.
max_retries: u64Per-chunk retry budget.
timeout_ms: u64Request 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<Limits, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Limits, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Limits
Source§impl Serialize for Limits
impl Serialize for Limits
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.