pub struct ChimesAuthorization<T, P>{ /* private fields */ }Implementations§
Source§impl<T, P> ChimesAuthorization<T, P>
impl<T, P> ChimesAuthorization<T, P>
Trait Implementations§
Source§impl<S, B, T, P> Transform<S, ServiceRequest> for ChimesAuthorization<T, P>where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
B: MessageBody + 'static,
T: Clone + Sized + ChimesAuthUser<T> + DeserializeOwned + 'static,
P: Sized + ChimesAuthService<T> + 'static,
impl<S, B, T, P> Transform<S, ServiceRequest> for ChimesAuthorization<T, P>where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
B: MessageBody + 'static,
T: Clone + Sized + ChimesAuthUser<T> + DeserializeOwned + 'static,
P: Sized + ChimesAuthService<T> + 'static,
Source§type Response = ServiceResponse<EitherBody<B>>
type Response = ServiceResponse<EitherBody<B>>
Responses produced by the service.
Source§type Transform = ChimesAuthenticationMiddleware<S, T, P>
type Transform = ChimesAuthenticationMiddleware<S, T, P>
The
TransformService value created by this factorySource§type Future = Ready<Result<<ChimesAuthorization<T, P> as Transform<S, ServiceRequest>>::Transform, <ChimesAuthorization<T, P> as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<ChimesAuthorization<T, P> as Transform<S, ServiceRequest>>::Transform, <ChimesAuthorization<T, P> as Transform<S, ServiceRequest>>::InitError>>
The future response value.
Source§fn new_transform(&self, service: S) -> Self::Future
fn new_transform(&self, service: S) -> Self::Future
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations§
impl<T, P> Freeze for ChimesAuthorization<T, P>where
T: Freeze,
impl<T, P> RefUnwindSafe for ChimesAuthorization<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> !Send for ChimesAuthorization<T, P>
impl<T, P> !Sync for ChimesAuthorization<T, P>
impl<T, P> Unpin for ChimesAuthorization<T, P>where
T: Unpin,
impl<T, P> UnwindSafe for ChimesAuthorization<T, P>where
T: UnwindSafe,
P: RefUnwindSafe,
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