Struct webkit6::PermissionStateQuery
source · pub struct PermissionStateQuery { /* private fields */ }
Expand description
This query represents a user’s choice to allow or deny access to “powerful features” of the platform, as specified in the Permissions W3C Specification.
When signalled by the #WebKitWebView through the query-permission-state
signal, the application
has to eventually respond, via webkit_permission_state_query_finish()
, whether it grants,
denies or requests a dedicated permission prompt for the given query.
When a #WebKitPermissionStateQuery is not handled by the user, the user-agent is instructed to
prompt
the user for the given permission.
GLib type: Shared boxed type with reference counted clone semantics.
Implementations§
source§impl PermissionStateQuery
impl PermissionStateQuery
sourcepub fn as_ptr(&self) -> *mut WebKitPermissionStateQuery
pub fn as_ptr(&self) -> *mut WebKitPermissionStateQuery
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow(
ptr: &*mut WebKitPermissionStateQuery,
) -> &Self
pub unsafe fn from_glib_ptr_borrow( ptr: &*mut WebKitPermissionStateQuery, ) -> &Self
Borrows the underlying C value.
source§impl PermissionStateQuery
impl PermissionStateQuery
sourcepub fn finish(&self, state: PermissionState)
pub fn finish(&self, state: PermissionState)
Notify the web-engine of the selected permission state for the given query. This function should
only be called as a response to the WebKitWebView::query-permission-state
signal.
§state
a #WebKitPermissionState
sourcepub fn security_origin(&self) -> Option<SecurityOrigin>
pub fn security_origin(&self) -> Option<SecurityOrigin>
Get the permission origin for which access is being queried.
§Returns
A #WebKitSecurityOrigin representing the origin from which the @self was emitted.
Trait Implementations§
source§impl Clone for PermissionStateQuery
impl Clone for PermissionStateQuery
source§impl Debug for PermissionStateQuery
impl Debug for PermissionStateQuery
source§impl From<PermissionStateQuery> for Value
impl From<PermissionStateQuery> for Value
source§fn from(s: PermissionStateQuery) -> Self
fn from(s: PermissionStateQuery) -> Self
source§impl HasParamSpec for PermissionStateQuery
impl HasParamSpec for PermissionStateQuery
type ParamSpec = ParamSpecBoxed
§type SetValue = PermissionStateQuery
type SetValue = PermissionStateQuery
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, PermissionStateQuery>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for PermissionStateQuery
impl Hash for PermissionStateQuery
source§impl Ord for PermissionStateQuery
impl Ord for PermissionStateQuery
source§fn cmp(&self, other: &PermissionStateQuery) -> Ordering
fn cmp(&self, other: &PermissionStateQuery) -> 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 PermissionStateQuery
impl PartialEq for PermissionStateQuery
source§fn eq(&self, other: &PermissionStateQuery) -> bool
fn eq(&self, other: &PermissionStateQuery) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PermissionStateQuery
impl PartialOrd for PermissionStateQuery
source§fn partial_cmp(&self, other: &PermissionStateQuery) -> Option<Ordering>
fn partial_cmp(&self, other: &PermissionStateQuery) -> 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 PermissionStateQuery
impl StaticType for PermissionStateQuery
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for PermissionStateQuery
impl StructuralPartialEq for PermissionStateQuery
Auto Trait Implementations§
impl Freeze for PermissionStateQuery
impl RefUnwindSafe for PermissionStateQuery
impl !Send for PermissionStateQuery
impl !Sync for PermissionStateQuery
impl Unpin for PermissionStateQuery
impl UnwindSafe for PermissionStateQuery
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
)