pub struct RedisMiddlewareFactory<ClaimsType: Claims> { /* private fields */ }Implementations§
source§impl<ClaimsType: Claims> RedisMiddlewareFactory<ClaimsType>
impl<ClaimsType: Claims> RedisMiddlewareFactory<ClaimsType>
pub fn new( jwt_encoding_key: Arc<EncodingKey>, jwt_decoding_key: Arc<DecodingKey>, algorithm: Algorithm, pool: RedisPool, extractors: Vec<Box<dyn SessionExtractor<ClaimsType>>> ) -> Self
pub fn storage(&self) -> SessionStorage<ClaimsType>
Trait Implementations§
source§impl<ClaimsType: Clone + Claims> Clone for RedisMiddlewareFactory<ClaimsType>
impl<ClaimsType: Clone + Claims> Clone for RedisMiddlewareFactory<ClaimsType>
source§fn clone(&self) -> RedisMiddlewareFactory<ClaimsType>
fn clone(&self) -> RedisMiddlewareFactory<ClaimsType>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<S, B, ClaimsType> Transform<S, ServiceRequest> for RedisMiddlewareFactory<ClaimsType>where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
ClaimsType: Claims,
impl<S, B, ClaimsType> Transform<S, ServiceRequest> for RedisMiddlewareFactory<ClaimsType>where S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static, ClaimsType: Claims,
§type Response = ServiceResponse<B>
type Response = ServiceResponse<B>
Responses produced by the service.
§type Transform = RedisMiddleware<S, ClaimsType>
type Transform = RedisMiddleware<S, ClaimsType>
The
TransformService value created by this factory§type Future = Ready<Result<<RedisMiddlewareFactory<ClaimsType> as Transform<S, ServiceRequest>>::Transform, <RedisMiddlewareFactory<ClaimsType> as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<RedisMiddlewareFactory<ClaimsType> as Transform<S, ServiceRequest>>::Transform, <RedisMiddlewareFactory<ClaimsType> 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<ClaimsType> !RefUnwindSafe for RedisMiddlewareFactory<ClaimsType>
impl<ClaimsType> Send for RedisMiddlewareFactory<ClaimsType>
impl<ClaimsType> Sync for RedisMiddlewareFactory<ClaimsType>
impl<ClaimsType> Unpin for RedisMiddlewareFactory<ClaimsType>where ClaimsType: Unpin,
impl<ClaimsType> !UnwindSafe for RedisMiddlewareFactory<ClaimsType>
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