pub fn write_to_disk(&self) -> Result<(), CookieCacheError> {
        let path = get_cookie_cache_path()?;

        let store = &*self.store.read().expect("Poisoned lock!");
        let contents = serde_json::to_string_pretty(store)?;

        std::fs::write(path, contents)?;
        Ok(())
    }
/// Attempt to write persistent cookies to the on-disk cookie cache.
Attempt to write persistent cookies to the on-disk cookie cache.
Attempt to write persistent cookies to the on - disk cookie cache .
pub fn write_to_disk(&self) -> Result<(), CookieCacheError> {
        let path = get_cookie_cache_path()?;
        let store = &*self.store.read().expect("Poisoned lock!");
        let contents = serde_json::to_string_pretty(store)?;
        std::fs::write(path, contents)?;
        Ok(())
    }
pub fn write_to_disk ( & self ) -> Result < ( ) , CookieCacheError > { let path = get_cookie_cache_path ( ) ? ; let store = & * self . store . read ( ) . expect ( " " ) ; let contents = serde_json :: to_string_pretty ( store ) ? ; std :: fs :: write ( path , contents ) ? ; Ok ( ( ) ) }
Attempt to write persistent cookies to the on-disk cookie cache.
Attempt to write persistent cookies to the on - disk cookie cache .
&self
&self