pub struct FrequencyLimit(/* private fields */);Expand description
A checked decimal frequency, in updates per second.
Held as text rather than as a number because the protocol carries it as
text: 2.0 and 2 are the same rate but not the same bytes, and this
crate sends back exactly what the caller wrote. It never does arithmetic on
the value.
Implementations§
Trait Implementations§
Source§impl Clone for FrequencyLimit
impl Clone for FrequencyLimit
Source§fn clone(&self) -> FrequencyLimit
fn clone(&self) -> FrequencyLimit
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 moreSource§impl Debug for FrequencyLimit
impl Debug for FrequencyLimit
impl Eq for FrequencyLimit
Source§impl Hash for FrequencyLimit
impl Hash for FrequencyLimit
Source§impl Ord for FrequencyLimit
impl Ord for FrequencyLimit
Source§fn cmp(&self, other: &FrequencyLimit) -> Ordering
fn cmp(&self, other: &FrequencyLimit) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FrequencyLimit
impl PartialEq for FrequencyLimit
Source§impl PartialOrd for FrequencyLimit
impl PartialOrd for FrequencyLimit
impl StructuralPartialEq for FrequencyLimit
Auto Trait Implementations§
impl Freeze for FrequencyLimit
impl RefUnwindSafe for FrequencyLimit
impl Send for FrequencyLimit
impl Sync for FrequencyLimit
impl Unpin for FrequencyLimit
impl UnsafeUnpin for FrequencyLimit
impl UnwindSafe for FrequencyLimit
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