Struct aws_smithy_runtime::client::http::body::minimum_throughput::options::MinimumThroughputBodyOptionsBuilder
source · pub struct MinimumThroughputBodyOptionsBuilder { /* private fields */ }
Available on crate feature
client
only.Expand description
A builder for MinimumThroughputBodyOptions
Implementations§
source§impl MinimumThroughputBodyOptionsBuilder
impl MinimumThroughputBodyOptionsBuilder
sourcepub fn grace_period(self, grace_period: Duration) -> Self
pub fn grace_period(self, grace_period: Duration) -> Self
Set the amount of time that throughput my fall below minimum before an error is emitted.
If throughput rises above the minimum, the timer is reset.
sourcepub fn set_grace_period(&mut self, grace_period: Option<Duration>) -> &mut Self
pub fn set_grace_period(&mut self, grace_period: Option<Duration>) -> &mut Self
Set the amount of time that throughput my fall below minimum before an error is emitted.
If throughput rises above the minimum, the timer is reset.
sourcepub fn minimum_throughput(self, minimum_throughput: Throughput) -> Self
pub fn minimum_throughput(self, minimum_throughput: Throughput) -> Self
Set the minimum allowable throughput.
sourcepub fn set_minimum_throughput(
&mut self,
minimum_throughput: Option<Throughput>
) -> &mut Self
pub fn set_minimum_throughput( &mut self, minimum_throughput: Option<Throughput> ) -> &mut Self
Set the minimum allowable throughput.
sourcepub fn check_interval(self, check_interval: Duration) -> Self
pub fn check_interval(self, check_interval: Duration) -> Self
Set the rate at which throughput is checked.
Defaults to 1 second.
sourcepub fn set_check_interval(
&mut self,
check_interval: Option<Duration>
) -> &mut Self
pub fn set_check_interval( &mut self, check_interval: Option<Duration> ) -> &mut Self
Set the rate at which throughput is checked.
Defaults to 1 second.
sourcepub fn build(self) -> MinimumThroughputBodyOptions
pub fn build(self) -> MinimumThroughputBodyOptions
Build this builder, producing a MinimumThroughputBodyOptions
.
Unset fields will be set with defaults.
Trait Implementations§
source§impl Clone for MinimumThroughputBodyOptionsBuilder
impl Clone for MinimumThroughputBodyOptionsBuilder
source§fn clone(&self) -> MinimumThroughputBodyOptionsBuilder
fn clone(&self) -> MinimumThroughputBodyOptionsBuilder
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 Default for MinimumThroughputBodyOptionsBuilder
impl Default for MinimumThroughputBodyOptionsBuilder
source§fn default() -> MinimumThroughputBodyOptionsBuilder
fn default() -> MinimumThroughputBodyOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MinimumThroughputBodyOptionsBuilder
impl RefUnwindSafe for MinimumThroughputBodyOptionsBuilder
impl Send for MinimumThroughputBodyOptionsBuilder
impl Sync for MinimumThroughputBodyOptionsBuilder
impl Unpin for MinimumThroughputBodyOptionsBuilder
impl UnwindSafe for MinimumThroughputBodyOptionsBuilder
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.