Struct finchers_session::cookie::CookieBackend[][src]

pub struct CookieBackend { /* fields omitted */ }

Methods

impl CookieBackend
[src]

Creates a CookieSessionBackend which stores the Cookie values as a raw form.

Creates a CookieSessionBackend which signs the Cookie values with the specified secret key.

This method is only available if the feature flag secure is set.

Creates a CookieSessionBackend which encrypts the Cookie values with the specified secret key.

This method is only available if the feature flag secure is set.

Sets the path of Cookie entry.

The default value is "/".

Sets the value of secure in Cookie entry.

The default value is true.

Sets the value of http_only in Cookie entry.

The default value is true.

Sets the value of domain in Cookie entry.

The default value is None.

Sets the value of same_site in Cookie entry.

The default value is None.

Sets the value of max_age in Cookie entry.

The default value is None.

Trait Implementations

impl Debug for CookieBackend
[src]

Formats the value using the given formatter. Read more

impl Clone for CookieBackend
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Endpoint<'a> for CookieBackend
[src]

The inner type associated with this endpoint.

The type of value which will be returned from apply.

Perform checking the incoming HTTP request and returns an instance of the associated Future if matched. Read more

Add an annotation that the associated type Output is fixed to T.

Converts self using the provided Wrapper.

Auto Trait Implementations

impl Send for CookieBackend

impl Sync for CookieBackend