pub struct HybridRateLimitStore { /* private fields */ }Implementations§
Source§impl HybridRateLimitStore
impl HybridRateLimitStore
pub fn new( local: Arc<GovernorMemoryRateLimitStore>, global: Arc<dyn RateLimitStore>, local_multiplier: u64, ) -> Self
Trait Implementations§
Source§impl RateLimitStore for HybridRateLimitStore
impl RateLimitStore for HybridRateLimitStore
fn consume<'a>(&'a self, input: RateLimitConsumeInput) -> RateLimitFuture<'a>
Auto Trait Implementations§
impl !RefUnwindSafe for HybridRateLimitStore
impl !UnwindSafe for HybridRateLimitStore
impl Freeze for HybridRateLimitStore
impl Send for HybridRateLimitStore
impl Sync for HybridRateLimitStore
impl Unpin for HybridRateLimitStore
impl UnsafeUnpin for HybridRateLimitStore
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