pub struct Policy<R, S> { /* private fields */ }
Expand description
Policy engine. Represents a read-only set of rules and can
evaluate Request
based on those rules.
Policy engine consists of two sets:
- static rules
- variable rules - any rule that contains variables (“{{..}}”). Static rules are organized in a data structure with fast querying time. Variable rules are evaluated on every request.
Implementations§
Source§impl<R, S, RC> Policy<R, S>where
R: ResourceMatcher<Context = RC>,
S: Substituter<Context = RC>,
impl<R, S, RC> Policy<R, S>where
R: ResourceMatcher<Context = RC>,
S: Substituter<Context = RC>,
Trait Implementations§
Auto Trait Implementations§
impl<R, S> Freeze for Policy<R, S>
impl<R, S> RefUnwindSafe for Policy<R, S>where
R: RefUnwindSafe,
S: RefUnwindSafe,
impl<R, S> Send for Policy<R, S>
impl<R, S> Sync for Policy<R, S>
impl<R, S> Unpin for Policy<R, S>
impl<R, S> UnwindSafe for Policy<R, S>where
R: UnwindSafe,
S: 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