Trait CookieExt

Source
pub trait CookieExt {
Show 18 methods // Provided methods fn new(_name: &str, _value: &str) -> CookieImpl { ... } fn creation_time(&self) -> SystemTime { ... } fn expires(&self) -> Option<SystemTime> { ... } fn domain<'a>(&'a self) -> Cow<'a, str> { ... } fn free(&mut self) { ... } fn is_http_only(&self) -> bool { ... } fn name<'a>(&'a self) -> Cow<'a, str> { ... } fn path<'a>(&'a self) -> Cow<'a, str> { ... } fn is_secure(&self) -> bool { ... } fn value<'a>(&'a self) -> Cow<'a, str> { ... } fn make_http_only(&mut self) { ... } fn make_secure(&mut self) { ... } fn set_creation_time(&mut self, _time: &SystemTime) { ... } fn set_expires(&mut self, _time: &SystemTime) { ... } fn set_domain(&mut self, _domain: &str) { ... } fn set_name(&mut self, _name: &str) { ... } fn set_path(&mut self, _path: &str) { ... } fn set_value(&mut self, _value: &str) { ... }
}

Provided Methods§

Source

fn new(_name: &str, _value: &str) -> CookieImpl

Source

fn creation_time(&self) -> SystemTime

Source

fn expires(&self) -> Option<SystemTime>

Source

fn domain<'a>(&'a self) -> Cow<'a, str>

Source

fn free(&mut self)

Source

fn is_http_only(&self) -> bool

Source

fn name<'a>(&'a self) -> Cow<'a, str>

Source

fn path<'a>(&'a self) -> Cow<'a, str>

Source

fn is_secure(&self) -> bool

Source

fn value<'a>(&'a self) -> Cow<'a, str>

Source

fn make_http_only(&mut self)

Source

fn make_secure(&mut self)

Source

fn set_creation_time(&mut self, _time: &SystemTime)

Source

fn set_expires(&mut self, _time: &SystemTime)

Source

fn set_domain(&mut self, _domain: &str)

Source

fn set_name(&mut self, _name: &str)

Source

fn set_path(&mut self, _path: &str)

Source

fn set_value(&mut self, _value: &str)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§