diff --git a/actix_redis/enum.RespValue.html b/actix_redis/enum.RespValue.html index 75dc7efb1..82a042afa 100644 --- a/actix_redis/enum.RespValue.html +++ b/actix_redis/enum.RespValue.html @@ -25,12 +25,12 @@ arguments, e.g. RPUSH

Trait Implementations

impl Clone for RespValue

impl Debug for RespValue

impl Eq for RespValue

impl<'a> From<&'a [u8]> for RespValue

impl Eq for RespValue

impl<'a> From<&'a [u8]> for RespValue

impl<'a> From<&'a String> for RespValue

impl<'a> From<&'a str> for RespValue

impl<'a> From<String> for RespValue

impl<'a> From<Vec<u8, Global>> for RespValue

impl<'a> From<usize> for RespValue

impl<'a> From<String> for RespValue

impl<'a> From<Vec<u8, Global>> for RespValue

impl<'a> From<usize> for RespValue

impl FromResp for RespValue

impl PartialEq<RespValue> for RespValue

Implementations

impl RedisSession[src]

pub fn new<S: Into<String>>(addr: S, key: &[u8]) -> RedisSession[src]

Create new redis session backend

+

Implementations

impl RedisSession[src]

pub fn new<S: Into<String>>(addr: S, key: &[u8]) -> RedisSession[src]

Create new redis session backend

  • addr - address of the redis server
@@ -17,17 +17,18 @@ session, When this value is changed, all session data is lost.

pub fn cookie_secure(self, secure: bool) -> Self[src]

Set custom cookie secure If the secure field is set, a cookie will only be transmitted when the connection is secure - i.e. https

-

pub fn cookie_max_age(self, max_age: Duration) -> Self[src]

Set custom cookie max-age

-

pub fn cookie_same_site(self, same_site: SameSite) -> Self[src]

Set custom cookie SameSite

-

pub fn cookie_http_only(self, http_only: bool) -> Self[src]

Set custom cookie HttpOnly policy

-

pub fn cache_keygen(self, keygen: Box<dyn Fn(&str) -> String>) -> Self[src]

Set a custom cache key generation strategy, expecting session key as input

-

Trait Implementations

impl<S, B> Transform<S> for RedisSession where
    S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
    S::Future: 'static,
    B: 'static, 
[src]

type Request = ServiceRequest

Requests handled by the service.

+

pub fn cookie_max_age(self, max_age: impl Into<Option<Duration>>) -> Self[src]

Set custom cookie max-age +Use None for session-only cookies

+

pub fn cookie_same_site(self, same_site: SameSite) -> Self[src]

Set custom cookie SameSite

+

pub fn cookie_http_only(self, http_only: bool) -> Self[src]

Set custom cookie HttpOnly policy

+

pub fn cache_keygen(self, keygen: Box<dyn Fn(&str) -> String>) -> Self[src]

Set a custom cache key generation strategy, expecting session key as input

+

Trait Implementations

impl<S, B> Transform<S> for RedisSession where
    S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
    S::Future: 'static,
    B: 'static, 
[src]

type Request = ServiceRequest

Requests handled by the service.

type Response = ServiceResponse<B>

Responses given by the service.

type Error = S::Error

Errors produced by the service.

type InitError = ()

Errors produced while building a transform service.

type Transform = RedisSessionMiddleware<S>

The TransformService value created by this factory

type Future = Ready<Result<Self::Transform, Self::InitError>>

The future response value.

-

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]