pub struct MaxConcurrentSessionsRule {
pub max: usize,
}Expand description
Limit concurrent sessions per quorum.
Fields§
§max: usizeMaximum simultaneous active sessions.
Trait Implementations§
Source§impl Rule for MaxConcurrentSessionsRule
impl Rule for MaxConcurrentSessionsRule
Source§fn evaluate(
&self,
_request: &SessionRequest,
ctx: &PolicyContext,
) -> Result<(), PolicyDenial>
fn evaluate( &self, _request: &SessionRequest, ctx: &PolicyContext, ) -> Result<(), PolicyDenial>
Evaluate the rule. Returns
Ok(()) if allowed, Err(PolicyDenial) if denied.Auto Trait Implementations§
impl Freeze for MaxConcurrentSessionsRule
impl RefUnwindSafe for MaxConcurrentSessionsRule
impl Send for MaxConcurrentSessionsRule
impl Sync for MaxConcurrentSessionsRule
impl Unpin for MaxConcurrentSessionsRule
impl UnsafeUnpin for MaxConcurrentSessionsRule
impl UnwindSafe for MaxConcurrentSessionsRule
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