Struct aws_smithy_runtime::client::http::body::minimum_throughput::options::MinimumThroughputBodyOptionsBuilder
source · pub struct MinimumThroughputBodyOptionsBuilder { /* private fields */ }
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
👎Deprecated: No longer used. The check interval is now based on the check window (not currently configurable). Open an issue if you need to configure the check window.
pub fn check_interval(self, _check_interval: Duration) -> Self
No longer used. The check interval is now based on the check window (not currently configurable).
sourcepub fn set_check_interval(
&mut self,
_check_interval: Option<Duration>,
) -> &mut Self
👎Deprecated: No longer used. The check interval is now based on the check window (not currently configurable). Open an issue if you need to configure the check window.
pub fn set_check_interval( &mut self, _check_interval: Option<Duration>, ) -> &mut Self
No longer used. The check interval is now based on the check window (not currently configurable).
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.