Struct slack_morphism::prelude::SlackRateThrottler
source · pub struct SlackRateThrottler {
pub config: SlackApiRateControlConfig,
/* private fields */
}
Fields§
§config: SlackApiRateControlConfig
Implementations§
source§impl SlackRateThrottler
impl SlackRateThrottler
pub fn new(rate_control_config: SlackApiRateControlConfig) -> Self
pub fn calc_throttle_delay( &mut self, method_rate_ctl: &SlackApiMethodRateControlConfig, team_id: Option<SlackTeamId>, min_delayed: Option<Duration> ) -> Option<Duration>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SlackRateThrottler
impl Send for SlackRateThrottler
impl Sync for SlackRateThrottler
impl Unpin for SlackRateThrottler
impl UnwindSafe for SlackRateThrottler
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