Struct sn0int_std::ratelimits::Ratelimiter
source · pub struct Ratelimiter { /* private fields */ }
Implementations§
source§impl Ratelimiter
impl Ratelimiter
pub fn new() -> Ratelimiter
pub fn pass(&mut self, tx: RatelimitSender, key: &str, passes: u32, time: u32)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Ratelimiter
impl Send for Ratelimiter
impl Sync for Ratelimiter
impl Unpin for Ratelimiter
impl UnwindSafe for Ratelimiter
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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