Struct webkit6::WebsiteData
source · pub struct WebsiteData { /* private fields */ }
Expand description
Data stored locally by a web site.
WebKitWebsiteData represents data stored in the client by a particular website. A website is normally a set of URLs grouped by domain name. You can get the website name, which is usually the domain, with webkit_website_data_get_name(). Documents loaded from the file system, like file:// URIs, are all grouped in the same WebKitWebsiteData with the name “Local files”.
A website can store different types of data in the client side. #WebKitWebsiteDataTypes is an enum containing all the possible data types; use webkit_website_data_get_types() to get the bitmask of data types. It’s also possible to know the size of the data stored for some of the #WebKitWebsiteDataTypes by using webkit_website_data_get_size().
A list of WebKitWebsiteData can be retrieved with webkit_website_data_manager_fetch(). See #WebKitWebsiteDataManager for more information.
GLib type: Shared boxed type with reference counted clone semantics.
Implementations§
source§impl WebsiteData
impl WebsiteData
sourcepub fn as_ptr(&self) -> *mut WebKitWebsiteData
pub fn as_ptr(&self) -> *mut WebKitWebsiteData
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut WebKitWebsiteData) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut WebKitWebsiteData) -> &Self
Borrows the underlying C value.
source§impl WebsiteData
impl WebsiteData
sourcepub fn name(&self) -> Option<GString>
pub fn name(&self) -> Option<GString>
Gets the name of #WebKitWebsiteData.
This is the website name, normally represented by a domain or host name. All local documents are grouped in the same #WebKitWebsiteData using the name “Local files”.
§Returns
the website name of @self.
sourcepub fn size(&self, types: WebsiteDataTypes) -> u64
pub fn size(&self, types: WebsiteDataTypes) -> u64
Gets the size of the data of types @types in a #WebKitWebsiteData.
Note that currently the data size is only known for WebsiteDataTypes::DISK_CACHE
data type
so for all other types 0 will be returned.
§types
a bitmask of #WebKitWebsiteDataTypes
§Returns
the size of @self for the given @types.
sourcepub fn types(&self) -> WebsiteDataTypes
pub fn types(&self) -> WebsiteDataTypes
Gets the types of data stored in the client for a #WebKitWebsiteData.
These are the types actually present, not the types queried with webkit_website_data_manager_fetch().
§Returns
a bitmask of #WebKitWebsiteDataTypes in @self
Trait Implementations§
source§impl Clone for WebsiteData
impl Clone for WebsiteData
source§impl Debug for WebsiteData
impl Debug for WebsiteData
source§impl From<WebsiteData> for Value
impl From<WebsiteData> for Value
source§fn from(s: WebsiteData) -> Self
fn from(s: WebsiteData) -> Self
source§impl HasParamSpec for WebsiteData
impl HasParamSpec for WebsiteData
type ParamSpec = ParamSpecBoxed
§type SetValue = WebsiteData
type SetValue = WebsiteData
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, WebsiteData>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for WebsiteData
impl Hash for WebsiteData
source§impl Ord for WebsiteData
impl Ord for WebsiteData
source§fn cmp(&self, other: &WebsiteData) -> Ordering
fn cmp(&self, other: &WebsiteData) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for WebsiteData
impl PartialEq for WebsiteData
source§fn eq(&self, other: &WebsiteData) -> bool
fn eq(&self, other: &WebsiteData) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WebsiteData
impl PartialOrd for WebsiteData
source§fn partial_cmp(&self, other: &WebsiteData) -> Option<Ordering>
fn partial_cmp(&self, other: &WebsiteData) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for WebsiteData
impl StaticType for WebsiteData
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for WebsiteData
impl StructuralPartialEq for WebsiteData
Auto Trait Implementations§
impl Freeze for WebsiteData
impl RefUnwindSafe for WebsiteData
impl !Send for WebsiteData
impl !Sync for WebsiteData
impl Unpin for WebsiteData
impl UnwindSafe for WebsiteData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)