pd-rs-common 0.2.2

Rust common lib
Documentation
1
2
3
4
5
6
pub mod memory_rate_limiter;

pub trait RateLimiter {
    fn try_acquire(&self, key: String, tokens: u64) -> bool;
    fn get_config(&self) -> (u64, u64, Option<u32>);
}