pub enum PolicyDenial {
OutsideTimeWindow {
hour: u32,
start: u32,
end: u32,
},
TooManySessions {
active: usize,
max: usize,
},
MessageTooLarge {
size: usize,
max: usize,
},
ThresholdTooHigh {
threshold: u32,
max: u32,
},
}Expand description
Why a policy denied a request.
Variants§
OutsideTimeWindow
Request falls outside the allowed time window.
Fields
TooManySessions
Too many concurrent sessions for this quorum.
MessageTooLarge
Message exceeds size limit.
ThresholdTooHigh
Threshold exceeds maximum allowed.
Trait Implementations§
Source§impl Clone for PolicyDenial
impl Clone for PolicyDenial
Source§fn clone(&self) -> PolicyDenial
fn clone(&self) -> PolicyDenial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicyDenial
impl Debug for PolicyDenial
Source§impl Display for PolicyDenial
impl Display for PolicyDenial
Source§impl Error for PolicyDenial
impl Error for PolicyDenial
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PolicyDenial
impl RefUnwindSafe for PolicyDenial
impl Send for PolicyDenial
impl Sync for PolicyDenial
impl Unpin for PolicyDenial
impl UnsafeUnpin for PolicyDenial
impl UnwindSafe for PolicyDenial
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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