Struct slack_morphism::prelude::SlackApiRateControlLimit
source · Expand description
A rate limit definition
Fields
value: usizeper: DurationImplementations
sourceimpl SlackApiRateControlLimit
impl SlackApiRateControlLimit
pub fn new(value: usize, per: Duration) -> Self
pub fn to_rate_limit_in_ms(&self) -> u64
pub fn to_rate_limit_capacity(&self) -> usize
pub fn to_throttling_counter(&self) -> ThrottlingCounter
Trait Implementations
sourceimpl Clone for SlackApiRateControlLimit
impl Clone for SlackApiRateControlLimit
sourcefn clone(&self) -> SlackApiRateControlLimit
fn clone(&self) -> SlackApiRateControlLimit
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SlackApiRateControlLimit
impl Debug for SlackApiRateControlLimit
sourceimpl PartialEq<SlackApiRateControlLimit> for SlackApiRateControlLimit
impl PartialEq<SlackApiRateControlLimit> for SlackApiRateControlLimit
sourcefn eq(&self, other: &SlackApiRateControlLimit) -> bool
fn eq(&self, other: &SlackApiRateControlLimit) -> bool
impl Eq for SlackApiRateControlLimit
impl StructuralEq for SlackApiRateControlLimit
impl StructuralPartialEq for SlackApiRateControlLimit
Auto Trait Implementations
impl RefUnwindSafe for SlackApiRateControlLimit
impl Send for SlackApiRateControlLimit
impl Sync for SlackApiRateControlLimit
impl Unpin for SlackApiRateControlLimit
impl UnwindSafe for SlackApiRateControlLimit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more