Struct s3_algo::SpecificTimings
source · pub struct SpecificTimings {
pub seconds_per_unit: f64,
pub minimum_units_for_estimation: usize,
}Expand description
These settings are specific to the kind of operation we do. For example delete or put in S3.
Fields§
§seconds_per_unit: f64The initial estimate of extra timeout per unit (byte or object)
minimum_units_for_estimation: usizeThe amount of units in a request, below which it does not affect estimation
Implementations§
source§impl SpecificTimings
impl SpecificTimings
sourcepub fn default_for_bytes() -> Self
pub fn default_for_bytes() -> Self
Sane default setting for when the size is number of bytes
sourcepub fn default_for_objects() -> Self
pub fn default_for_objects() -> Self
Sane default setting for when the size is number of objects
Trait Implementations§
source§impl Clone for SpecificTimings
impl Clone for SpecificTimings
source§fn clone(&self) -> SpecificTimings
fn clone(&self) -> SpecificTimings
Returns a copy of the value. Read more
1.0.0 · 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 SpecificTimings
impl Debug for SpecificTimings
source§impl<'de> Deserialize<'de> for SpecificTimings
impl<'de> Deserialize<'de> for SpecificTimings
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