pub struct AuthorizationLayer { /* private fields */ }Expand description
Authorization middleware layer
Implementations§
Source§impl AuthorizationLayer
impl AuthorizationLayer
Sourcepub fn new(service: Arc<AuthorizationService>) -> Self
pub fn new(service: Arc<AuthorizationService>) -> Self
A layer that authorizes requests through service.
Trait Implementations§
Source§impl Clone for AuthorizationLayer
impl Clone for AuthorizationLayer
Source§impl<S> Layer<S> for AuthorizationLayer
impl<S> Layer<S> for AuthorizationLayer
Auto Trait Implementations§
impl !RefUnwindSafe for AuthorizationLayer
impl !UnwindSafe for AuthorizationLayer
impl Freeze for AuthorizationLayer
impl Send for AuthorizationLayer
impl Sync for AuthorizationLayer
impl Unpin for AuthorizationLayer
impl UnsafeUnpin for AuthorizationLayer
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