pub struct SqliteBackend { /* private fields */ }Available on crate feature
sqlite only.Expand description
SQLite-backed GCRA rate limiter.
Stores per-key state in a SQLite database. Each key tracks its last allowed timestamp and burst capacity, enabling durable rate limiting across process restarts.
Implementations§
Trait Implementations§
Source§impl RateLimitBackend for SqliteBackend
impl RateLimitBackend for SqliteBackend
Auto Trait Implementations§
impl !Freeze for SqliteBackend
impl RefUnwindSafe for SqliteBackend
impl Send for SqliteBackend
impl Sync for SqliteBackend
impl Unpin for SqliteBackend
impl UnsafeUnpin for SqliteBackend
impl UnwindSafe for SqliteBackend
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