pub enum RateLimitFailMode {
Open,
Closed,
}Expand description
Whether request processing continues when the rate-limit store is unavailable.
Variants§
Open
Record the store error and allow the request to continue.
Closed
Record the store error and reject the request.
Trait Implementations§
Source§impl Clone for RateLimitFailMode
impl Clone for RateLimitFailMode
impl Copy for RateLimitFailMode
Source§impl Debug for RateLimitFailMode
impl Debug for RateLimitFailMode
Source§impl Default for RateLimitFailMode
impl Default for RateLimitFailMode
Source§impl<'de> Deserialize<'de> for RateLimitFailMode
impl<'de> Deserialize<'de> for RateLimitFailMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RateLimitFailMode
Source§impl PartialEq for RateLimitFailMode
impl PartialEq for RateLimitFailMode
impl StructuralPartialEq for RateLimitFailMode
Auto Trait Implementations§
impl Freeze for RateLimitFailMode
impl RefUnwindSafe for RateLimitFailMode
impl Send for RateLimitFailMode
impl Sync for RateLimitFailMode
impl Unpin for RateLimitFailMode
impl UnsafeUnpin for RateLimitFailMode
impl UnwindSafe for RateLimitFailMode
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