[][src]Struct web_sys::MediaKeys

#[repr(transparent)]pub struct MediaKeys { /* fields omitted */ }

The MediaKeys class.

MDN Documentation

This API requires the following crate features to be activated: MediaKeys

Implementations

impl MediaKeys[src]

pub fn key_system(&self) -> String[src]

Getter for the keySystem field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaKeys

impl MediaKeys[src]

pub fn create_session(&self) -> Result<MediaKeySession, JsValue>[src]

The createSession() method.

MDN Documentation

This API requires the following crate features to be activated: MediaKeySession, MediaKeys

impl MediaKeys[src]

pub fn create_session_with_session_type(
    &self,
    session_type: MediaKeySessionType
) -> Result<MediaKeySession, JsValue>
[src]

The createSession() method.

MDN Documentation

This API requires the following crate features to be activated: MediaKeySession, MediaKeySessionType, MediaKeys

impl MediaKeys[src]

pub fn get_status_for_policy(&self) -> Promise[src]

The getStatusForPolicy() method.

MDN Documentation

This API requires the following crate features to be activated: MediaKeys

impl MediaKeys[src]

pub fn get_status_for_policy_with_policy(
    &self,
    policy: &MediaKeysPolicy
) -> Promise
[src]

The getStatusForPolicy() method.

MDN Documentation

This API requires the following crate features to be activated: MediaKeys, MediaKeysPolicy

impl MediaKeys[src]

pub fn set_server_certificate_with_buffer_source(
    &self,
    server_certificate: &Object
) -> Promise
[src]

The setServerCertificate() method.

MDN Documentation

This API requires the following crate features to be activated: MediaKeys

impl MediaKeys[src]

pub fn set_server_certificate_with_u8_array(
    &self,
    server_certificate: &mut [u8]
) -> Promise
[src]

The setServerCertificate() method.

MDN Documentation

This API requires the following crate features to be activated: MediaKeys

Trait Implementations

impl AsRef<JsValue> for MediaKeys[src]

impl AsRef<MediaKeys> for MediaKeys[src]

impl AsRef<Object> for MediaKeys[src]

impl Clone for MediaKeys[src]

impl Debug for MediaKeys[src]

impl Deref for MediaKeys[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for MediaKeys[src]

impl From<JsValue> for MediaKeys[src]

impl From<MediaKeys> for JsValue[src]

impl From<MediaKeys> for Object[src]

impl FromWasmAbi for MediaKeys[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for MediaKeys[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a MediaKeys[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for MediaKeys[src]

impl OptionFromWasmAbi for MediaKeys[src]

impl OptionIntoWasmAbi for MediaKeys[src]

impl<'a> OptionIntoWasmAbi for &'a MediaKeys[src]

impl PartialEq<MediaKeys> for MediaKeys[src]

impl RefFromWasmAbi for MediaKeys[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<MediaKeys>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for MediaKeys[src]

impl StructuralPartialEq for MediaKeys[src]

impl WasmDescribe for MediaKeys[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> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

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.