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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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.