pub struct ChainPolicy<A, B> { /* private fields */ }Expand description
Composes two policies in sequence. First denial wins.
Implementations§
Source§impl<A, B> ChainPolicy<A, B>
impl<A, B> ChainPolicy<A, B>
Trait Implementations§
Source§impl<A: Policy, B: Policy> Policy for ChainPolicy<A, B>
impl<A: Policy, B: Policy> Policy for ChainPolicy<A, B>
fn evaluate(&self, ctx: &PolicyContext) -> PolicyDecision
Auto Trait Implementations§
impl<A, B> Freeze for ChainPolicy<A, B>
impl<A, B> RefUnwindSafe for ChainPolicy<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for ChainPolicy<A, B>
impl<A, B> Sync for ChainPolicy<A, B>
impl<A, B> Unpin for ChainPolicy<A, B>
impl<A, B> UnsafeUnpin for ChainPolicy<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for ChainPolicy<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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