pub struct PolicyChain {
pub layers: Vec<Arc<dyn Policy>>,
}Expand description
Ordered policy combinator: layers are evaluated in priority order
(hard-deny first). Any Deny short-circuits immediately; otherwise the
first Ask is remembered while later layers keep running (a later Deny
still wins — deny beats ask); if no layer denies, the first Ask wins; all
Allow → Allow.
Fields§
§layers: Vec<Arc<dyn Policy>>Implementations§
Trait Implementations§
Source§impl Policy for PolicyChain
impl Policy for PolicyChain
Auto Trait Implementations§
impl !RefUnwindSafe for PolicyChain
impl !UnwindSafe for PolicyChain
impl Freeze for PolicyChain
impl Send for PolicyChain
impl Sync for PolicyChain
impl Unpin for PolicyChain
impl UnsafeUnpin for PolicyChain
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