pub enum QuotaMode {
Enforce,
Shadow,
}Expand description
Whether quota exhaustion is enforced or reported in shadow mode.
This deployment flag is deliberately not part of a policy fingerprint.
Switching a policy from QuotaMode::Shadow to QuotaMode::Enforce
therefore keeps the counter state warmed while it was shadowed.
Variants§
Enforce
Quota exhaustion denies the operation.
Shadow
Quota exhaustion is reported but permits the operation to proceed.
Trait Implementations§
impl Copy for QuotaMode
Source§impl<'de> Deserialize<'de> for QuotaMode
impl<'de> Deserialize<'de> for QuotaMode
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 QuotaMode
impl StructuralPartialEq for QuotaMode
Auto Trait Implementations§
impl Freeze for QuotaMode
impl RefUnwindSafe for QuotaMode
impl Send for QuotaMode
impl Sync for QuotaMode
impl Unpin for QuotaMode
impl UnsafeUnpin for QuotaMode
impl UnwindSafe for QuotaMode
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