Struct aws_smithy_runtime::client::http::body::minimum_throughput::options::MinimumThroughputBodyOptions
source · pub struct MinimumThroughputBodyOptions { /* private fields */ }
Available on crate feature
client
only.Expand description
A collection of options for configuring a MinimumThroughputBody
.
Implementations§
source§impl MinimumThroughputBodyOptions
impl MinimumThroughputBodyOptions
sourcepub fn builder() -> MinimumThroughputBodyOptionsBuilder
pub fn builder() -> MinimumThroughputBodyOptionsBuilder
Create a new builder.
sourcepub fn to_builder(self) -> MinimumThroughputBodyOptionsBuilder
pub fn to_builder(self) -> MinimumThroughputBodyOptionsBuilder
Convert this struct into a builder.
sourcepub fn grace_period(&self) -> Duration
pub fn grace_period(&self) -> Duration
The throughput check grace period.
If throughput is below the minimum for longer than this period, an error is emitted.
If this is set to 0, the minimum throughput will be enforced immediately.
sourcepub fn minimum_throughput(&self) -> Throughput
pub fn minimum_throughput(&self) -> Throughput
The minimum acceptable throughput
sourcepub fn check_interval(&self) -> Duration
pub fn check_interval(&self) -> Duration
The rate at which the throughput is checked.
The actual rate throughput is checked may be higher than this value, but it will never be lower.
Trait Implementations§
source§impl Clone for MinimumThroughputBodyOptions
impl Clone for MinimumThroughputBodyOptions
source§fn clone(&self) -> MinimumThroughputBodyOptions
fn clone(&self) -> MinimumThroughputBodyOptions
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 MinimumThroughputBodyOptions
impl Debug for MinimumThroughputBodyOptions
source§impl From<StalledStreamProtectionConfig> for MinimumThroughputBodyOptions
impl From<StalledStreamProtectionConfig> for MinimumThroughputBodyOptions
source§fn from(value: StalledStreamProtectionConfig) -> Self
fn from(value: StalledStreamProtectionConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MinimumThroughputBodyOptions
impl RefUnwindSafe for MinimumThroughputBodyOptions
impl Send for MinimumThroughputBodyOptions
impl Sync for MinimumThroughputBodyOptions
impl Unpin for MinimumThroughputBodyOptions
impl UnwindSafe for MinimumThroughputBodyOptions
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.