pub struct CookieStorage { /* private fields */ }Expand description
Thread-safe cookie storage using RwLock for concurrent access.
This is the original cookie storage that works with the Cookie struct
from cookie.rs, providing add/find/expire operations with host+path matching.
Implementations§
Source§impl CookieStorage
impl CookieStorage
pub fn new() -> Self
pub fn add(&self, cookie: Cookie)
pub fn count(&self) -> usize
pub fn load_file(&self, path: &Path) -> Result<usize>
pub fn save_file(&self, path: &Path) -> Result<()>
pub fn clear(&self)
pub fn to_header_string(&self, host: &str, path: &str, secure: bool) -> String
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CookieStorage
impl RefUnwindSafe for CookieStorage
impl Send for CookieStorage
impl Sync for CookieStorage
impl Unpin for CookieStorage
impl UnsafeUnpin for CookieStorage
impl UnwindSafe for CookieStorage
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