pub struct logout;Expand description
Handles the logout endpoint, logging out the user and rendering the appropriate HTML page.
§Arguments
request- A reference to the Actix webHttpRequestobject.config- Configuration data for the application.fernet- Fernet object to encrypt the auth payload that will be set assession_tokencookie.template- Configuration container for the loaded templates.session- Session struct that holds thesession_mappingandsession_trackerto handle sessions.
§Returns
Returns an HTTPResponse with the cookie for session_token reset if available.
Trait Implementations§
source§impl HttpServiceFactory for logout
impl HttpServiceFactory for logout
fn register(self, __config: &mut AppService)
Auto Trait Implementations§
impl Freeze for logout
impl RefUnwindSafe for logout
impl Send for logout
impl Sync for logout
impl Unpin for logout
impl UnwindSafe for logout
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more