Struct iron_login::Login [] [src]

pub struct Login<U: User> {
    // some fields omitted
}

Login state

To construct this within a request, use User::get_login()

Methods

impl<U: User> Login<U>

fn get_user(self) -> Option<U>

Unwrap into the User instance

fn log_in(self, user: U) -> LoginModifier<U>

Log in as the passed User instance

fn log_out(self) -> LoginModifier<U>

Log out (clearing the cookie)