Struct chrome_remote_interface_model::browser::PermissionDescriptorBuilder[][src]

pub struct PermissionDescriptorBuilder { /* fields omitted */ }
This is supported on crate features Browser and experimental only.

Implementations

impl PermissionDescriptorBuilder[src]

pub fn name(&mut self, v: String) -> &mut Self[src]

Name of permission. See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.

pub fn sysex(&mut self, v: bool) -> &mut Self[src]

For "midi" permission, may also specify sysex control.

pub fn user_visible_only(&mut self, v: bool) -> &mut Self[src]

For "push" permission, may specify userVisibleOnly. Note that userVisibleOnly = true is the only currently supported type.

pub fn allow_without_sanitization(&mut self, v: bool) -> &mut Self[src]

For "clipboard" permission, may specify allowWithoutSanitization.

pub fn pan_tilt_zoom(&mut self, v: bool) -> &mut Self[src]

For "camera" permission, may specify panTiltZoom.

pub fn build(&mut self) -> Result<PermissionDescriptor, &'static str>[src]

Trait Implementations

impl Clone for PermissionDescriptorBuilder[src]

impl Debug for PermissionDescriptorBuilder[src]

impl Default for PermissionDescriptorBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.