pub struct Cookie(/* private fields */);
Implementations§
Source§impl Cookie
impl Cookie
pub fn new( name: &str, value: &str, domain: &str, path: &str, max_age: i32, ) -> Cookie
pub fn applies_to_uri(&mut self, uri: &mut URI) -> bool
pub fn domain_matches(&mut self, host: &str) -> bool
pub fn domain(&mut self) -> Option<GString>
pub fn expires(&mut self) -> Option<Date>
pub fn is_http_only(&mut self) -> bool
pub fn name(&mut self) -> Option<GString>
pub fn path(&mut self) -> Option<GString>
pub fn is_secure(&mut self) -> bool
pub fn value(&mut self) -> Option<GString>
pub fn set_domain(&mut self, domain: &str)
pub fn set_expires(&mut self, expires: &mut Date)
pub fn set_http_only(&mut self, http_only: bool)
pub fn set_max_age(&mut self, max_age: i32)
pub fn set_name(&mut self, name: &str)
pub fn set_path(&mut self, path: &str)
pub fn set_secure(&mut self, secure: bool)
pub fn set_value(&mut self, value: &str)
pub fn parse(header: &str, origin: &mut URI) -> Option<Cookie>
Trait Implementations§
Source§impl Ord for Cookie
impl Ord for Cookie
Source§impl PartialOrd for Cookie
impl PartialOrd for Cookie
Source§impl StaticType for Cookie
impl StaticType for Cookie
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Cookie
impl StructuralPartialEq for Cookie
Auto Trait Implementations§
impl Freeze for Cookie
impl RefUnwindSafe for Cookie
impl !Send for Cookie
impl !Sync for Cookie
impl Unpin for Cookie
impl UnwindSafe for Cookie
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