[][src]Struct web_sys::OscillatorNode

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

The OscillatorNode object

MDN Documentation

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

Methods

impl OscillatorNode[src]

pub fn new(context: &BaseAudioContext) -> Result<OscillatorNode, JsValue>[src]

The new OscillatorNode(..) constructor, creating a new instance of OscillatorNode

MDN Documentation

This API requires the following crate features to be activated: BaseAudioContext, OscillatorNode

impl OscillatorNode[src]

pub fn new_with_options(
    context: &BaseAudioContext,
    options: &OscillatorOptions
) -> Result<OscillatorNode, JsValue>
[src]

The new OscillatorNode(..) constructor, creating a new instance of OscillatorNode

MDN Documentation

This API requires the following crate features to be activated: BaseAudioContext, OscillatorNode, OscillatorOptions

impl OscillatorNode[src]

pub fn set_periodic_wave(&self, periodic_wave: &PeriodicWave)[src]

The setPeriodicWave() method

MDN Documentation

This API requires the following crate features to be activated: OscillatorNode, PeriodicWave

impl OscillatorNode[src]

pub fn type_(&self) -> OscillatorType[src]

The type getter

MDN Documentation

This API requires the following crate features to be activated: OscillatorNode, OscillatorType

impl OscillatorNode[src]

pub fn set_type(&self, type_: OscillatorType)[src]

The type setter

MDN Documentation

This API requires the following crate features to be activated: OscillatorNode, OscillatorType

impl OscillatorNode[src]

pub fn frequency(&self) -> AudioParam[src]

The frequency getter

MDN Documentation

This API requires the following crate features to be activated: AudioParam, OscillatorNode

impl OscillatorNode[src]

pub fn detune(&self) -> AudioParam[src]

The detune getter

MDN Documentation

This API requires the following crate features to be activated: AudioParam, OscillatorNode

impl OscillatorNode[src]

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

The start() method

MDN Documentation

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

impl OscillatorNode[src]

pub fn start_with_when(&self, when: f64) -> Result<(), JsValue>[src]

The start() method

MDN Documentation

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

impl OscillatorNode[src]

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

The stop() method

MDN Documentation

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

impl OscillatorNode[src]

pub fn stop_with_when(&self, when: f64) -> Result<(), JsValue>[src]

The stop() method

MDN Documentation

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

impl OscillatorNode[src]

pub fn onended(&self) -> Option<Function>[src]

The onended getter

MDN Documentation

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

impl OscillatorNode[src]

pub fn set_onended(&self, onended: Option<&Function>)[src]

The onended setter

MDN Documentation

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

Methods from Deref<Target = AudioScheduledSourceNode>

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

Deprecated:

doesn't exist in Safari, use parent class methods instead

The start() method

MDN Documentation

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

pub fn start_with_when(&self, when: f64) -> Result<(), JsValue>[src]

Deprecated:

doesn't exist in Safari, use parent class methods instead

The start() method

MDN Documentation

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

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

Deprecated:

doesn't exist in Safari, use parent class methods instead

The stop() method

MDN Documentation

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

pub fn stop_with_when(&self, when: f64) -> Result<(), JsValue>[src]

Deprecated:

doesn't exist in Safari, use parent class methods instead

The stop() method

MDN Documentation

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

pub fn onended(&self) -> Option<Function>[src]

The onended getter

MDN Documentation

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

pub fn set_onended(&self, onended: Option<&Function>)[src]

Deprecated:

doesn't exist in Safari, use parent class methods instead

The onended setter

MDN Documentation

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

Trait Implementations

impl AsRef<JsValue> for OscillatorNode[src]

impl AsRef<AudioScheduledSourceNode> for OscillatorNode[src]

impl AsRef<AudioNode> for OscillatorNode[src]

impl AsRef<EventTarget> for OscillatorNode[src]

impl AsRef<Object> for OscillatorNode[src]

impl From<JsValue> for OscillatorNode[src]

impl From<OscillatorNode> for JsValue[src]

impl From<OscillatorNode> for AudioScheduledSourceNode[src]

impl From<OscillatorNode> for AudioNode[src]

impl From<OscillatorNode> for EventTarget[src]

impl From<OscillatorNode> for Object[src]

impl Clone for OscillatorNode[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for OscillatorNode[src]

impl Deref for OscillatorNode[src]

type Target = AudioScheduledSourceNode

The resulting type after dereferencing.

impl FromWasmAbi for OscillatorNode[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 OscillatorNode[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 OscillatorNode[src]

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

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

impl WasmDescribe for OscillatorNode[src]

impl OptionFromWasmAbi for OscillatorNode[src]

impl OptionIntoWasmAbi for OscillatorNode[src]

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

impl RefFromWasmAbi for OscillatorNode[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<OscillatorNode>

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 JsCast for OscillatorNode[src]

fn is_instance_of<T>(&self) -> bool where
    T: JsCast
[src]

Test whether this JS value is an instance of the type T. Read more

fn dyn_into<T>(self) -> Result<T, Self> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn dyn_ref<T>(&self) -> Option<&T> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn unchecked_into<T>(self) -> T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into the specified type. Read more

fn unchecked_ref<T>(&self) -> &T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into a reference to the specified type. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi