Struct web_sys::PresentationConnection
source · #[repr(transparent)]pub struct PresentationConnection { /* private fields */ }
Expand description
The PresentationConnection
object
This API requires the following crate features to be activated: PresentationConnection
Implementations§
source§impl PresentationConnection
impl PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
sourcepub fn send_with_array_buffer(&self, data: &ArrayBuffer) -> Result<(), JsValue>
pub fn send_with_array_buffer(&self, data: &ArrayBuffer) -> Result<(), JsValue>
The send()
method
This API requires the following crate features to be activated: PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
sourcepub fn state(&self) -> PresentationConnectionState
pub fn state(&self) -> PresentationConnectionState
The state
getter
This API requires the following crate features to be activated: PresentationConnection
, PresentationConnectionState
source§impl PresentationConnection
impl PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
sourcepub fn set_onconnect(&self, onconnect: Option<&Function>)
pub fn set_onconnect(&self, onconnect: Option<&Function>)
The onconnect
setter
This API requires the following crate features to be activated: PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
sourcepub fn set_onclose(&self, onclose: Option<&Function>)
pub fn set_onclose(&self, onclose: Option<&Function>)
The onclose
setter
This API requires the following crate features to be activated: PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
sourcepub fn onterminate(&self) -> Option<Function>
pub fn onterminate(&self) -> Option<Function>
The onterminate
getter
This API requires the following crate features to be activated: PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
sourcepub fn set_onterminate(&self, onterminate: Option<&Function>)
pub fn set_onterminate(&self, onterminate: Option<&Function>)
The onterminate
setter
This API requires the following crate features to be activated: PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
sourcepub fn binary_type(&self) -> PresentationConnectionBinaryType
pub fn binary_type(&self) -> PresentationConnectionBinaryType
The binaryType
getter
This API requires the following crate features to be activated: PresentationConnection
, PresentationConnectionBinaryType
source§impl PresentationConnection
impl PresentationConnection
sourcepub fn set_binary_type(&self, binary_type: PresentationConnectionBinaryType)
pub fn set_binary_type(&self, binary_type: PresentationConnectionBinaryType)
The binaryType
setter
This API requires the following crate features to be activated: PresentationConnection
, PresentationConnectionBinaryType
source§impl PresentationConnection
impl PresentationConnection
source§impl PresentationConnection
impl PresentationConnection
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: PresentationConnection
Trait Implementations§
source§impl AsRef<EventTarget> for PresentationConnection
impl AsRef<EventTarget> for PresentationConnection
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for PresentationConnection
impl AsRef<JsValue> for PresentationConnection
source§impl AsRef<Object> for PresentationConnection
impl AsRef<Object> for PresentationConnection
source§impl Clone for PresentationConnection
impl Clone for PresentationConnection
source§fn clone(&self) -> PresentationConnection
fn clone(&self) -> PresentationConnection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PresentationConnection
impl Debug for PresentationConnection
source§impl From<JsValue> for PresentationConnection
impl From<JsValue> for PresentationConnection
source§fn from(obj: JsValue) -> PresentationConnection
fn from(obj: JsValue) -> PresentationConnection
source§impl From<PresentationConnection> for EventTarget
impl From<PresentationConnection> for EventTarget
source§fn from(obj: PresentationConnection) -> EventTarget
fn from(obj: PresentationConnection) -> EventTarget
source§impl From<PresentationConnection> for JsValue
impl From<PresentationConnection> for JsValue
source§fn from(obj: PresentationConnection) -> JsValue
fn from(obj: PresentationConnection) -> JsValue
source§impl From<PresentationConnection> for Object
impl From<PresentationConnection> for Object
source§fn from(obj: PresentationConnection) -> Object
fn from(obj: PresentationConnection) -> Object
source§impl FromWasmAbi for PresentationConnection
impl FromWasmAbi for PresentationConnection
source§impl<'a> IntoWasmAbi for &'a PresentationConnection
impl<'a> IntoWasmAbi for &'a PresentationConnection
source§impl IntoWasmAbi for PresentationConnection
impl IntoWasmAbi for PresentationConnection
source§impl JsCast for PresentationConnection
impl JsCast for PresentationConnection
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<'a> OptionIntoWasmAbi for &'a PresentationConnection
impl<'a> OptionIntoWasmAbi for &'a PresentationConnection
source§impl RefFromWasmAbi for PresentationConnection
impl RefFromWasmAbi for PresentationConnection
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<PresentationConnection>
type Anchor = ManuallyDrop<PresentationConnection>
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 PresentationConnection
impl !Send for PresentationConnection
impl !Sync for PresentationConnection
impl Unpin for PresentationConnection
impl UnwindSafe for PresentationConnection
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