Struct rocket_simpleauth::userpass::UserPass [] [src]

pub struct UserPass<'c, T> {
    pub user: T,
    // some fields omitted
}

Fields

Methods

impl<'c, T> UserPass<'c, T>
[src]

[src]

Removes the cookie so the user can be logged out

[src]

Get the stored user type

Trait Implementations

impl<'a, 'r, T: FromString> FromRequest<'a, 'r> for UserPass<'a, T>
[src]

A request guard that checks if a private cookie was provided

The name of the cookie can be configured with simpleauth_cookie_identifier config key in your Rocket config file.

By default it is "sid" see the config module

The associated error to be returned if derivation fails.

[src]

Derives an instance of Self from the incoming request metadata. Read more

Auto Trait Implementations

impl<'c, T> !Send for UserPass<'c, T>

impl<'c, T> !Sync for UserPass<'c, T>