pub struct IntoNotFound<A, F>(/* private fields */)
where
A: Authorizer,
F: Fn(&Context<'_>) -> (String, String);Trait Implementations§
Source§impl<A, F> Authorizer for IntoNotFound<A, F>
impl<A, F> Authorizer for IntoNotFound<A, F>
Try to authorize an operation. Read more
Auto Trait Implementations§
impl<A, F> Freeze for IntoNotFound<A, F>
impl<A, F> RefUnwindSafe for IntoNotFound<A, F>where
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, F> Send for IntoNotFound<A, F>
impl<A, F> Sync for IntoNotFound<A, F>
impl<A, F> Unpin for IntoNotFound<A, F>
impl<A, F> UnwindSafe for IntoNotFound<A, F>where
A: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<A> AuthorizerExt for Awhere
A: Authorizer,
impl<A> AuthorizerExt for Awhere
A: Authorizer,
fn or_else(self, outcome: Outcome) -> OrElseAuthorizer<Self>
fn or_else_allow(self) -> OrElseAuthorizer<Self>
fn or_else_deny(self) -> OrElseAuthorizer<Self>
fn into_not_found<F>(self, f: F) -> IntoNotFound<Self, F>
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