[−][src]Trait actix_web::middleware::identity::IdentityPolicy
Identity policy definition.
Associated Types
type Future: IntoFuture<Item = Option<String>, Error = Error>
The return type of the middleware
type ResponseFuture: IntoFuture<Item = (), Error = Error>
The return type of the middleware
Required methods
fn from_request<P>(&self, request: &mut ServiceRequest<P>) -> Self::Future
Parse the session from request and load data from a service identity.
fn to_response<B>(
&self,
identity: Option<String>,
changed: bool,
response: &mut ServiceResponse<B>
) -> Self::ResponseFuture
&self,
identity: Option<String>,
changed: bool,
response: &mut ServiceResponse<B>
) -> Self::ResponseFuture
Write changes to response
Implementors
impl IdentityPolicy for CookieIdentityPolicy
[src]
type Future = Result<Option<String>, Error>
type ResponseFuture = Result<(), Error>
fn from_request<P>(&self, req: &mut ServiceRequest<P>) -> Self::Future
[src]
fn to_response<B>(
&self,
id: Option<String>,
changed: bool,
res: &mut ServiceResponse<B>
) -> Self::ResponseFuture
[src]
&self,
id: Option<String>,
changed: bool,
res: &mut ServiceResponse<B>
) -> Self::ResponseFuture