pub trait CookieExt {
Show 18 methods
// Required 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) -> &mut Self;
fn make_secure(&mut self) -> &mut Self;
fn set_creation_time(&mut self, time: &SystemTime) -> &mut Self;
fn set_expires(&mut self, time: &SystemTime) -> &mut Self;
fn set_domain(&mut self, domain: &str) -> &mut Self;
fn set_name(&mut self, name: &str) -> &mut Self;
fn set_path(&mut self, path: &str) -> &mut Self;
fn set_value(&mut self, value: &str) -> &mut Self;
}
Required 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) -> &mut Self
fn make_secure(&mut self) -> &mut Self
fn set_creation_time(&mut self, time: &SystemTime) -> &mut Self
fn set_expires(&mut self, time: &SystemTime) -> &mut Self
fn set_domain(&mut self, domain: &str) -> &mut Self
fn set_name(&mut self, name: &str) -> &mut Self
fn set_path(&mut self, path: &str) -> &mut Self
fn set_value(&mut self, value: &str) -> &mut Self
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.