Struct web_sys::MediaKeySession
source · #[repr(transparent)]pub struct MediaKeySession { /* private fields */ }
Expand description
The MediaKeySession
object
This API requires the following crate features to be activated: MediaKeySession
Implementations§
source§impl MediaKeySession
impl MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn generate_request_with_buffer_source(
&self,
init_data_type: &str,
init_data: &Object
) -> Promise
pub fn generate_request_with_buffer_source(
&self,
init_data_type: &str,
init_data: &Object
) -> Promise
The generateRequest()
method
This API requires the following crate features to be activated: MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn generate_request_with_u8_array(
&self,
init_data_type: &str,
init_data: &mut [u8]
) -> Promise
pub fn generate_request_with_u8_array(
&self,
init_data_type: &str,
init_data: &mut [u8]
) -> Promise
The generateRequest()
method
This API requires the following crate features to be activated: MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn update_with_buffer_source(&self, response: &Object) -> Promise
pub fn update_with_buffer_source(&self, response: &Object) -> Promise
The update()
method
This API requires the following crate features to be activated: MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn update_with_u8_array(&self, response: &mut [u8]) -> Promise
pub fn update_with_u8_array(&self, response: &mut [u8]) -> Promise
The update()
method
This API requires the following crate features to be activated: MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn error(&self) -> Option<MediaKeyError>
pub fn error(&self) -> Option<MediaKeyError>
The error
getter
This API requires the following crate features to be activated: MediaKeyError
, MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn session_id(&self) -> String
pub fn session_id(&self) -> String
The sessionId
getter
This API requires the following crate features to be activated: MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn expiration(&self) -> f64
pub fn expiration(&self) -> f64
The expiration
getter
This API requires the following crate features to be activated: MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn key_statuses(&self) -> MediaKeyStatusMap
pub fn key_statuses(&self) -> MediaKeyStatusMap
The keyStatuses
getter
This API requires the following crate features to be activated: MediaKeySession
, MediaKeyStatusMap
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn onkeystatuseschange(&self) -> Option<Function>
pub fn onkeystatuseschange(&self) -> Option<Function>
The onkeystatuseschange
getter
This API requires the following crate features to be activated: MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn set_onkeystatuseschange(&self, onkeystatuseschange: Option<&Function>)
pub fn set_onkeystatuseschange(&self, onkeystatuseschange: Option<&Function>)
The onkeystatuseschange
setter
This API requires the following crate features to be activated: MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
source§impl MediaKeySession
impl MediaKeySession
sourcepub fn set_onmessage(&self, onmessage: Option<&Function>)
pub fn set_onmessage(&self, onmessage: Option<&Function>)
The onmessage
setter
This API requires the following crate features to be activated: MediaKeySession
Trait Implementations§
source§impl AsRef<EventTarget> for MediaKeySession
impl AsRef<EventTarget> for MediaKeySession
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for MediaKeySession
impl AsRef<JsValue> for MediaKeySession
source§impl AsRef<Object> for MediaKeySession
impl AsRef<Object> for MediaKeySession
source§impl Clone for MediaKeySession
impl Clone for MediaKeySession
source§fn clone(&self) -> MediaKeySession
fn clone(&self) -> MediaKeySession
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MediaKeySession
impl Debug for MediaKeySession
source§impl From<JsValue> for MediaKeySession
impl From<JsValue> for MediaKeySession
source§fn from(obj: JsValue) -> MediaKeySession
fn from(obj: JsValue) -> MediaKeySession
source§impl From<MediaKeySession> for EventTarget
impl From<MediaKeySession> for EventTarget
source§fn from(obj: MediaKeySession) -> EventTarget
fn from(obj: MediaKeySession) -> EventTarget
source§impl From<MediaKeySession> for JsValue
impl From<MediaKeySession> for JsValue
source§fn from(obj: MediaKeySession) -> JsValue
fn from(obj: MediaKeySession) -> JsValue
source§impl From<MediaKeySession> for Object
impl From<MediaKeySession> for Object
source§fn from(obj: MediaKeySession) -> Object
fn from(obj: MediaKeySession) -> Object
source§impl FromWasmAbi for MediaKeySession
impl FromWasmAbi for MediaKeySession
source§impl<'a> IntoWasmAbi for &'a MediaKeySession
impl<'a> IntoWasmAbi for &'a MediaKeySession
source§impl IntoWasmAbi for MediaKeySession
impl IntoWasmAbi for MediaKeySession
source§impl JsCast for MediaKeySession
impl JsCast for MediaKeySession
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 MediaKeySession
impl OptionFromWasmAbi for MediaKeySession
source§impl<'a> OptionIntoWasmAbi for &'a MediaKeySession
impl<'a> OptionIntoWasmAbi for &'a MediaKeySession
source§impl OptionIntoWasmAbi for MediaKeySession
impl OptionIntoWasmAbi for MediaKeySession
source§impl RefFromWasmAbi for MediaKeySession
impl RefFromWasmAbi for MediaKeySession
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<MediaKeySession>
type Anchor = ManuallyDrop<MediaKeySession>
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 MediaKeySession
impl !Send for MediaKeySession
impl !Sync for MediaKeySession
impl Unpin for MediaKeySession
impl UnwindSafe for MediaKeySession
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