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 Freeze for SlackRateThrottler
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