[−][src]Struct s3_algo::RequestConfig
General parameters that control timeouts and retries
Fields
timeout_fraction: f64
Timeout is set to a fraction of expected upload time (> 1.0)
backoff: f64
Every retry, the timeout is multiplied by backoff (> 1.0)
n_retries: usize
Number of times to retry a single request before giving up
expected_upload_speed: f64
Expected upload speed in MBps (megabytes per second) - used as an initial estimate.
avg_power: f64
To estimate the upload speed incrementally, we use an exponential average:
new_avg_speed = avg_power * new_speed + (1 - avg_power) * avg_speed
.
Thus, between 0.0 and 1.0, closer to 1.0 means that newer data points have more significance.
avg_min_bytes: u64
Only results from uploads larger than avg_min_bytes
are used to estimate
upload speed.
Uploads with size below this threshold get timeout set to min_timeout
.
min_timeout: f64
The minimum timeout (seconds) (always added as an extra term to the total timeout)
Trait Implementations
impl Clone for RequestConfig
[src]
fn clone(&self) -> RequestConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RequestConfig
[src]
impl Default for RequestConfig
[src]
impl<'de> Deserialize<'de> for RequestConfig where
RequestConfig: Default,
[src]
RequestConfig: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for RequestConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for RequestConfig
impl Send for RequestConfig
impl Sync for RequestConfig
impl Unpin for RequestConfig
impl UnwindSafe for RequestConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,