pub struct CookieLayer;Available on crate feature
router only.Expand description
A router layer that makes cookies available for the current request and writes pending cookie changes onto the response.
The changes reach the client whether the handler returns a response or an error: a cookie added before a redirect or an unauthorized error is set by the redirect or error response.
Implementations§
Source§impl CookieLayer
impl CookieLayer
Trait Implementations§
Source§impl Clone for CookieLayer
impl Clone for CookieLayer
impl Copy for CookieLayer
Source§impl Debug for CookieLayer
impl Debug for CookieLayer
Source§impl Default for CookieLayer
impl Default for CookieLayer
Source§impl Layer for CookieLayer
impl Layer for CookieLayer
Auto Trait Implementations§
impl Freeze for CookieLayer
impl RefUnwindSafe for CookieLayer
impl Send for CookieLayer
impl Sync for CookieLayer
impl Unpin for CookieLayer
impl UnsafeUnpin for CookieLayer
impl UnwindSafe for CookieLayer
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