Struct web_sys::AudioWorkletNode
source · #[repr(transparent)]pub struct AudioWorkletNode { /* private fields */ }
Expand description
The AudioWorkletNode
object
This API requires the following crate features to be activated: AudioWorkletNode
Implementations§
source§impl AudioWorkletNode
impl AudioWorkletNode
sourcepub fn new(
context: &BaseAudioContext,
name: &str
) -> Result<AudioWorkletNode, JsValue>
pub fn new(
context: &BaseAudioContext,
name: &str
) -> Result<AudioWorkletNode, JsValue>
The new AudioWorkletNode(..)
constructor, creating a new instance of AudioWorkletNode
This API requires the following crate features to be activated: AudioWorkletNode
, BaseAudioContext
source§impl AudioWorkletNode
impl AudioWorkletNode
sourcepub fn new_with_options(
context: &BaseAudioContext,
name: &str,
options: &AudioWorkletNodeOptions
) -> Result<AudioWorkletNode, JsValue>
pub fn new_with_options(
context: &BaseAudioContext,
name: &str,
options: &AudioWorkletNodeOptions
) -> Result<AudioWorkletNode, JsValue>
The new AudioWorkletNode(..)
constructor, creating a new instance of AudioWorkletNode
This API requires the following crate features to be activated: AudioWorkletNode
, AudioWorkletNodeOptions
, BaseAudioContext
source§impl AudioWorkletNode
impl AudioWorkletNode
sourcepub fn parameters(&self) -> Result<AudioParamMap, JsValue>
pub fn parameters(&self) -> Result<AudioParamMap, JsValue>
The parameters
getter
This API requires the following crate features to be activated: AudioParamMap
, AudioWorkletNode
source§impl AudioWorkletNode
impl AudioWorkletNode
sourcepub fn port(&self) -> Result<MessagePort, JsValue>
pub fn port(&self) -> Result<MessagePort, JsValue>
The port
getter
This API requires the following crate features to be activated: AudioWorkletNode
, MessagePort
source§impl AudioWorkletNode
impl AudioWorkletNode
sourcepub fn onprocessorerror(&self) -> Option<Function>
pub fn onprocessorerror(&self) -> Option<Function>
The onprocessorerror
getter
This API requires the following crate features to be activated: AudioWorkletNode
source§impl AudioWorkletNode
impl AudioWorkletNode
sourcepub fn set_onprocessorerror(&self, onprocessorerror: Option<&Function>)
pub fn set_onprocessorerror(&self, onprocessorerror: Option<&Function>)
The onprocessorerror
setter
This API requires the following crate features to be activated: AudioWorkletNode
Trait Implementations§
source§impl AsRef<AudioNode> for AudioWorkletNode
impl AsRef<AudioNode> for AudioWorkletNode
source§impl AsRef<EventTarget> for AudioWorkletNode
impl AsRef<EventTarget> for AudioWorkletNode
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for AudioWorkletNode
impl AsRef<JsValue> for AudioWorkletNode
source§impl AsRef<Object> for AudioWorkletNode
impl AsRef<Object> for AudioWorkletNode
source§impl Clone for AudioWorkletNode
impl Clone for AudioWorkletNode
source§fn clone(&self) -> AudioWorkletNode
fn clone(&self) -> AudioWorkletNode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AudioWorkletNode
impl Debug for AudioWorkletNode
source§impl From<AudioWorkletNode> for AudioNode
impl From<AudioWorkletNode> for AudioNode
source§fn from(obj: AudioWorkletNode) -> AudioNode
fn from(obj: AudioWorkletNode) -> AudioNode
source§impl From<AudioWorkletNode> for EventTarget
impl From<AudioWorkletNode> for EventTarget
source§fn from(obj: AudioWorkletNode) -> EventTarget
fn from(obj: AudioWorkletNode) -> EventTarget
source§impl From<AudioWorkletNode> for JsValue
impl From<AudioWorkletNode> for JsValue
source§fn from(obj: AudioWorkletNode) -> JsValue
fn from(obj: AudioWorkletNode) -> JsValue
source§impl From<AudioWorkletNode> for Object
impl From<AudioWorkletNode> for Object
source§fn from(obj: AudioWorkletNode) -> Object
fn from(obj: AudioWorkletNode) -> Object
source§impl From<JsValue> for AudioWorkletNode
impl From<JsValue> for AudioWorkletNode
source§fn from(obj: JsValue) -> AudioWorkletNode
fn from(obj: JsValue) -> AudioWorkletNode
source§impl FromWasmAbi for AudioWorkletNode
impl FromWasmAbi for AudioWorkletNode
source§impl<'a> IntoWasmAbi for &'a AudioWorkletNode
impl<'a> IntoWasmAbi for &'a AudioWorkletNode
source§impl IntoWasmAbi for AudioWorkletNode
impl IntoWasmAbi for AudioWorkletNode
source§impl JsCast for AudioWorkletNode
impl JsCast for AudioWorkletNode
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 AudioWorkletNode
impl OptionFromWasmAbi for AudioWorkletNode
source§impl<'a> OptionIntoWasmAbi for &'a AudioWorkletNode
impl<'a> OptionIntoWasmAbi for &'a AudioWorkletNode
source§impl OptionIntoWasmAbi for AudioWorkletNode
impl OptionIntoWasmAbi for AudioWorkletNode
source§impl RefFromWasmAbi for AudioWorkletNode
impl RefFromWasmAbi for AudioWorkletNode
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<AudioWorkletNode>
type Anchor = ManuallyDrop<AudioWorkletNode>
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 AudioWorkletNode
impl !Send for AudioWorkletNode
impl !Sync for AudioWorkletNode
impl Unpin for AudioWorkletNode
impl UnwindSafe for AudioWorkletNode
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