Trait carapax::access::AccessExt

source ·
pub trait AccessExt<P, HI>: Sized {
    // Provided method
    fn with_access_policy(
        self,
        policy: P
    ) -> Predicate<AccessPredicate<P>, HandlerInput, Self, HI> { ... }
}
Available on crate feature access only.
Expand description

Provides a shortcut for wrapping a Handler by an AccessPredicate.

Provided Methods§

source

fn with_access_policy( self, policy: P ) -> Predicate<AccessPredicate<P>, HandlerInput, Self, HI>

Shortcut to wrap a Handler with an access predicate.

Example: let handler = handler.access(policy).

§Arguments

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<P, H, HI> AccessExt<P, HI> for H
where H: Handler<HI>, HI: TryFromInput,