pub fn with_callback<F>(mut self, callback: F) -> Self
    where
        F: Fn(&mut Cookie) + Send + Sync + 'static,
    {
        self.cookie_callback = Some(Box::new(callback));
        self
    }
/// Set a callback function to be used to customise the session ID cookie.
/// The callback is called with the cookie before it is stored in the headers so you can change
/// most settings (changing the name or value of the cookie may prevent sessions from working,
/// so only change settings like same site, secure, etc...)
Set a callback function to be used to customise the session ID cookie.
The callback is called with the cookie before it is stored in the headers so you can change
most settings (changing the name or value of the cookie may prevent sessions from working,
so only change settings like same site, secure, etc...)
Set a callback function to be used to customise the session ID cookie . The callback is called with the cookie before it is stored in the headers so you can change most settings ( changing the name or value of the cookie may prevent sessions from working so only change settings like same site secure etc ... )
pub fn with_callback<F>(mut self, callback: F) -> Self
    where
        F: Fn(&mut Cookie) + Send + Sync + 'static,
    {
        self.cookie_callback = Some(Box::new(callback));
        self
    }
pub fn with_callback < F > ( mut self , callback : F ) -> Self where F : Fn ( & mut Cookie ) + Send + Sync + ' static , { self . cookie_callback = Some ( Box :: new ( callback ) ) ; self }
Set a callback function to be used to customise the session ID cookie.
Set a callback function to be used to customise the session ID cookie .
mut self
callback
F