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: f64
The initial estimate of extra timeout per unit (byte or object)
minimum_units_for_estimation: usize
The 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
Auto Trait Implementations§
impl RefUnwindSafe for SpecificTimings
impl Send for SpecificTimings
impl Sync for SpecificTimings
impl Unpin for SpecificTimings
impl UnwindSafe for SpecificTimings
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.