pub enum ThroughputPolicy {
Allow,
Deny,
}Expand description
Receiver-side policy for bandwidth-saturating upload and download measurements.
This policy does not affect connectivity checks or low-bandwidth latency and loss probes.
Variants§
Allow
Accept throughput measurements, subject to the configured server limits.
Deny
Reject throughput measurements while continuing to serve low-bandwidth probes.
Trait Implementations§
Source§impl Clone for ThroughputPolicy
impl Clone for ThroughputPolicy
Source§fn clone(&self) -> ThroughputPolicy
fn clone(&self) -> ThroughputPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ThroughputPolicy
Source§impl Debug for ThroughputPolicy
impl Debug for ThroughputPolicy
Source§impl Default for ThroughputPolicy
impl Default for ThroughputPolicy
Source§fn default() -> ThroughputPolicy
fn default() -> ThroughputPolicy
Returns the “default value” for a type. Read more
impl Eq for ThroughputPolicy
Source§impl PartialEq for ThroughputPolicy
impl PartialEq for ThroughputPolicy
impl StructuralPartialEq for ThroughputPolicy
Auto Trait Implementations§
impl Freeze for ThroughputPolicy
impl RefUnwindSafe for ThroughputPolicy
impl Send for ThroughputPolicy
impl Sync for ThroughputPolicy
impl Unpin for ThroughputPolicy
impl UnsafeUnpin for ThroughputPolicy
impl UnwindSafe for ThroughputPolicy
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