pub struct ClassLimits {
pub soft_ms: u64,
pub hard_ms: u64,
pub min_rate: u64,
}Expand description
種類ごとの上限。
Fields§
§soft_ms: u64これより前は、受け取った量に関わらず続ける。
hard_ms: u64これを過ぎたら、進みがあっても打ち切る。
min_rate: u64soft_ms を過ぎた後、続けるのに要る速さ(バイト/秒。平均と直近の区間の両方)。0 なら速さを見ない。
Trait Implementations§
Source§impl Clone for ClassLimits
impl Clone for ClassLimits
impl Copy for ClassLimits
Source§impl Debug for ClassLimits
impl Debug for ClassLimits
impl Eq for ClassLimits
Source§impl PartialEq for ClassLimits
impl PartialEq for ClassLimits
impl StructuralPartialEq for ClassLimits
Auto Trait Implementations§
impl Freeze for ClassLimits
impl RefUnwindSafe for ClassLimits
impl Send for ClassLimits
impl Sync for ClassLimits
impl Unpin for ClassLimits
impl UnsafeUnpin for ClassLimits
impl UnwindSafe for ClassLimits
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.