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.fernet- Fernet object to encrypt the auth payload that will be set assession_tokencookie.session- Session struct that holds thesession_mappingandsession_trackerto handle sessions.metadata- Struct containing metadata of the application.config- Configuration data for the application.template- Configuration container for the loaded templates.
§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