pub struct MinimumThroughputBodyOptions { /* private fields */ }
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
👎Deprecated: No longer used. Always returns Duration::from_millis(500)
pub fn check_interval(&self) -> Duration
Not used. Always returns Duration::from_millis(500)
.
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> 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.