pub struct RateLimitPerSecond(/* private fields */);Expand description
Rate limit for messages per second
Implementations§
Source§impl RateLimitPerSecond
impl RateLimitPerSecond
pub fn try_new(raw_value: usize) -> Result<Self, RateLimitPerSecondError>
Source§impl RateLimitPerSecond
impl RateLimitPerSecond
pub fn into_inner(self) -> usize
Trait Implementations§
Source§impl Clone for RateLimitPerSecond
impl Clone for RateLimitPerSecond
Source§fn clone(&self) -> RateLimitPerSecond
fn clone(&self) -> RateLimitPerSecond
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 RateLimitPerSecond
Source§impl Debug for RateLimitPerSecond
impl Debug for RateLimitPerSecond
Source§impl Default for RateLimitPerSecond
impl Default for RateLimitPerSecond
Source§impl<'de> Deserialize<'de> for RateLimitPerSecond
impl<'de> Deserialize<'de> for RateLimitPerSecond
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RateLimitPerSecond
impl Display for RateLimitPerSecond
impl Eq for RateLimitPerSecond
Source§impl From<RateLimitPerSecond> for usize
impl From<RateLimitPerSecond> for usize
Source§fn from(value: RateLimitPerSecond) -> Self
fn from(value: RateLimitPerSecond) -> Self
Converts to this type from the input type.
Source§impl Ord for RateLimitPerSecond
impl Ord for RateLimitPerSecond
Source§fn cmp(&self, other: &RateLimitPerSecond) -> Ordering
fn cmp(&self, other: &RateLimitPerSecond) -> 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 RateLimitPerSecond
impl PartialEq for RateLimitPerSecond
Source§fn eq(&self, other: &RateLimitPerSecond) -> bool
fn eq(&self, other: &RateLimitPerSecond) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RateLimitPerSecond
impl PartialOrd for RateLimitPerSecond
Source§impl Serialize for RateLimitPerSecond
impl Serialize for RateLimitPerSecond
impl StructuralPartialEq for RateLimitPerSecond
Auto Trait Implementations§
impl Freeze for RateLimitPerSecond
impl RefUnwindSafe for RateLimitPerSecond
impl Send for RateLimitPerSecond
impl Sync for RateLimitPerSecond
impl Unpin for RateLimitPerSecond
impl UnsafeUnpin for RateLimitPerSecond
impl UnwindSafe for RateLimitPerSecond
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more