pub struct PolicyFn<F>(/* private fields */);Trait Implementations§
Source§impl<Resource, F> AbacPolicy<Resource> for PolicyFn<F>where
F: for<'a> Fn(&AuthorizationRequest<'a, Resource>) -> AuthorizationDecision + Send + Sync + 'static,
impl<Resource, F> AbacPolicy<Resource> for PolicyFn<F>where
F: for<'a> Fn(&AuthorizationRequest<'a, Resource>) -> AuthorizationDecision + Send + Sync + 'static,
fn evaluate( &self, request: &AuthorizationRequest<'_, Resource>, ) -> AuthorizationDecision
Auto Trait Implementations§
impl<F> Freeze for PolicyFn<F>where
F: Freeze,
impl<F> RefUnwindSafe for PolicyFn<F>where
F: RefUnwindSafe,
impl<F> Send for PolicyFn<F>where
F: Send,
impl<F> Sync for PolicyFn<F>where
F: Sync,
impl<F> Unpin for PolicyFn<F>where
F: Unpin,
impl<F> UnsafeUnpin for PolicyFn<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for PolicyFn<F>where
F: 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