#[repr(transparent)]pub struct MediaKeys { /* private fields */ }
Expand description
The MediaKeys
object
This API requires the following crate features to be activated: MediaKeys
Implementations§
source§impl MediaKeys
impl MediaKeys
sourcepub fn create_session(&self) -> Result<MediaKeySession, JsValue>
pub fn create_session(&self) -> Result<MediaKeySession, JsValue>
The createSession()
method
This API requires the following crate features to be activated: MediaKeySession
, MediaKeys
source§impl MediaKeys
impl MediaKeys
sourcepub fn create_session_with_session_type(
&self,
session_type: MediaKeySessionType
) -> Result<MediaKeySession, JsValue>
pub fn create_session_with_session_type(
&self,
session_type: MediaKeySessionType
) -> Result<MediaKeySession, JsValue>
The createSession()
method
This API requires the following crate features to be activated: MediaKeySession
, MediaKeySessionType
, MediaKeys
source§impl MediaKeys
impl MediaKeys
sourcepub fn get_status_for_policy(&self) -> Promise
pub fn get_status_for_policy(&self) -> Promise
The getStatusForPolicy()
method
This API requires the following crate features to be activated: MediaKeys
source§impl MediaKeys
impl MediaKeys
sourcepub fn get_status_for_policy_with_policy(
&self,
policy: &MediaKeysPolicy
) -> Promise
pub fn get_status_for_policy_with_policy(
&self,
policy: &MediaKeysPolicy
) -> Promise
The getStatusForPolicy()
method
This API requires the following crate features to be activated: MediaKeys
, MediaKeysPolicy
source§impl MediaKeys
impl MediaKeys
sourcepub fn set_server_certificate_with_buffer_source(
&self,
server_certificate: &Object
) -> Promise
pub fn set_server_certificate_with_buffer_source(
&self,
server_certificate: &Object
) -> Promise
The setServerCertificate()
method
This API requires the following crate features to be activated: MediaKeys
source§impl MediaKeys
impl MediaKeys
sourcepub fn set_server_certificate_with_u8_array(
&self,
server_certificate: &mut [u8]
) -> Promise
pub fn set_server_certificate_with_u8_array(
&self,
server_certificate: &mut [u8]
) -> Promise
The setServerCertificate()
method
This API requires the following crate features to be activated: MediaKeys
Trait Implementations§
source§impl FromWasmAbi for MediaKeys
impl FromWasmAbi for MediaKeys
source§impl<'a> IntoWasmAbi for &'a MediaKeys
impl<'a> IntoWasmAbi for &'a MediaKeys
source§impl IntoWasmAbi for MediaKeys
impl IntoWasmAbi for MediaKeys
source§impl JsCast for MediaKeys
impl JsCast for MediaKeys
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for MediaKeys
impl OptionFromWasmAbi for MediaKeys
source§impl<'a> OptionIntoWasmAbi for &'a MediaKeys
impl<'a> OptionIntoWasmAbi for &'a MediaKeys
source§impl OptionIntoWasmAbi for MediaKeys
impl OptionIntoWasmAbi for MediaKeys
source§impl RefFromWasmAbi for MediaKeys
impl RefFromWasmAbi for MediaKeys
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<MediaKeys>
type Anchor = ManuallyDrop<MediaKeys>
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 moreAuto Trait Implementations§
impl RefUnwindSafe for MediaKeys
impl !Send for MediaKeys
impl !Sync for MediaKeys
impl Unpin for MediaKeys
impl UnwindSafe for MediaKeys
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more