Trait ceiling::StoreLock

source ·
pub trait StoreLock: Deref<Target = Option<(u32, u64)>> + Debug + Send + Sync { }
Expand description

The implementor of this trait is expected to dereference into an Option<(u32, u64)> with the items in the tuple corresponding to the remaining requests and the reset time in seconds respectively. While an instance of this trait is alive the corresponding rate limiting bucket is considered locked and no changes should be made until the implementor is dropped, meaning the lock has been released.

Implementors§