/// Generates an appropriate response based on the Logout status that the authenticator returned.
/// In the case of an error an "error" `Flash` response is generated from the given `msg`.
Generates an appropriate response based on the Logout status that the authenticator returned.
In the case of an error an "error" `Flash` response is generated from the given `msg`.
Generates an appropriate response based on the Logout status that the authenticator returned . In the case of an error an " error " ` Flash ` response is generated from the given ` msg ` .
pub fn flash_redirect<T: TryInto<Uri<'static>>, S: TryInto<Uri<'static>>, R: Into<String>>(
        &self,
        success_url: T,
        failure_url: S,
        failure_msg: R,
    ) -> Result<Redirect, Flash<Redirect>> {
        match self {
            Logout::Success(_) => Ok(self.success(success_url)),
            Logout::Failure => Err(self.flash_failure(failure_url, failure_msg)),
        }
    }
pub fn flash_redirect < T : TryInto < Uri < ' static > > , S : TryInto < Uri < ' static > > , R : Into < String > > ( & self , success_url : T , failure_url : S , failure_msg : R , ) -> Result < Redirect , Flash < Redirect > > { match self { Logout :: Success ( _ ) => Ok ( self . success ( success_url ) ) , Logout :: Failure => Err ( self . flash_failure ( failure_url , failure_msg ) ) , } }
Generates an appropriate response based on the Logout status that the authenticator returned.
Generates an appropriate response based on the Logout status that the authenticator returned .
&self
success_url
T
failure_url
S
failure_msg
R