Struct webkit2gtk::builders::WebsiteDataManagerBuilder
source · [−]pub struct WebsiteDataManagerBuilder { /* private fields */ }
v2_10
only.Expand description
A builder-pattern type to construct WebsiteDataManager
objects.
Implementations
sourceimpl WebsiteDataManagerBuilder
impl WebsiteDataManagerBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new WebsiteDataManagerBuilder
.
sourcepub fn build(self) -> WebsiteDataManager
pub fn build(self) -> WebsiteDataManager
Build the WebsiteDataManager
.
sourcepub fn base_cache_directory(self, base_cache_directory: &str) -> Self
pub fn base_cache_directory(self, base_cache_directory: &str) -> Self
The base directory for Website cache. This is used as a base directory for any Website cache when no specific cache directory has been provided.
sourcepub fn base_data_directory(self, base_data_directory: &str) -> Self
pub fn base_data_directory(self, base_data_directory: &str) -> Self
The base directory for Website data. This is used as a base directory for any Website data when no specific data directory has been provided.
sourcepub fn disk_cache_directory(self, disk_cache_directory: &str) -> Self
pub fn disk_cache_directory(self, disk_cache_directory: &str) -> Self
The directory where HTTP disk cache will be stored.
sourcepub fn dom_cache_directory(self, dom_cache_directory: &str) -> Self
Available on crate feature v2_30
only.
pub fn dom_cache_directory(self, dom_cache_directory: &str) -> Self
v2_30
only.The directory where DOM cache will be stored.
sourcepub fn hsts_cache_directory(self, hsts_cache_directory: &str) -> Self
Available on crate feature v2_26
only.
pub fn hsts_cache_directory(self, hsts_cache_directory: &str) -> Self
v2_26
only.The directory where the HTTP Strict-Transport-Security (HSTS) cache will be stored.
sourcepub fn indexeddb_directory(self, indexeddb_directory: &str) -> Self
pub fn indexeddb_directory(self, indexeddb_directory: &str) -> Self
The directory where IndexedDB databases will be stored.
sourcepub fn is_ephemeral(self, is_ephemeral: bool) -> Self
Available on crate feature v2_16
only.
pub fn is_ephemeral(self, is_ephemeral: bool) -> Self
v2_16
only.Whether the WebsiteDataManager
is ephemeral. An ephemeral WebsiteDataManager
handles all websites data as non-persistent, and nothing will be written to the client
storage. Note that if you create an ephemeral WebsiteDataManager
all other construction
parameters to configure data directories will be ignored.
sourcepub fn itp_directory(self, itp_directory: &str) -> Self
Available on crate feature v2_30
only.
pub fn itp_directory(self, itp_directory: &str) -> Self
v2_30
only.The directory where Intelligent Tracking Prevention (ITP) data will be stored.
sourcepub fn local_storage_directory(self, local_storage_directory: &str) -> Self
pub fn local_storage_directory(self, local_storage_directory: &str) -> Self
The directory where local storage data will be stored.
sourcepub fn offline_application_cache_directory(
self,
offline_application_cache_directory: &str
) -> Self
pub fn offline_application_cache_directory(
self,
offline_application_cache_directory: &str
) -> Self
The directory where offline web application cache will be stored.
sourcepub fn service_worker_registrations_directory(
self,
service_worker_registrations_directory: &str
) -> Self
Available on crate feature v2_30
only.
pub fn service_worker_registrations_directory(
self,
service_worker_registrations_directory: &str
) -> Self
v2_30
only.The directory where service workers registrations will be stored.
sourcepub fn websql_directory(self, websql_directory: &str) -> Self
👎Deprecated: Since 2.24
pub fn websql_directory(self, websql_directory: &str) -> Self
The directory where WebSQL databases will be stored. WebSQL is no longer supported. Use IndexedDB instead.
Trait Implementations
sourceimpl Clone for WebsiteDataManagerBuilder
impl Clone for WebsiteDataManagerBuilder
sourcefn clone(&self) -> WebsiteDataManagerBuilder
fn clone(&self) -> WebsiteDataManagerBuilder
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more