pub enum Reason {
NothingToUse,
Saturated,
Policy(&'static str),
}Expand description
Why a policy would not serve the request, for logs and metrics.
Variants§
NothingToUse
The key has no resources and creation is not allowed.
Saturated
Every resource is at capacity and the caller asked not to wait.
Policy(&'static str)
The policy’s own rule.
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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