pub enum Prefix {
Host,
Secure,
}Expand description
A RFC 6265bis cookie name prefix.
A prefix asks the browser to enforce extra constraints on a cookie based on
its name. For example, apply __Host- with Cookies::override_prefix_host.
Variants§
Host
The __Host- prefix: the cookie must be Secure, have Path=/, and no
Domain.
Secure
The __Secure- prefix: the cookie must be Secure.
Implementations§
Trait Implementations§
impl Copy for Prefix
impl Eq for Prefix
impl StructuralPartialEq for Prefix
Auto Trait Implementations§
impl Freeze for Prefix
impl RefUnwindSafe for Prefix
impl Send for Prefix
impl Sync for Prefix
impl Unpin for Prefix
impl UnsafeUnpin for Prefix
impl UnwindSafe for Prefix
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