[][src]Struct web_sys::OscillatorNode

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

The OscillatorNode class.

MDN Documentation

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

Methods

impl OscillatorNode[src]

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

Getter for the type field of this object.

MDN Documentation

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

impl OscillatorNode[src]

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

Setter for the type field of this object.

MDN Documentation

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

impl OscillatorNode[src]

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

Getter for the frequency field of this object.

MDN Documentation

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

impl OscillatorNode[src]

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

Getter for the detune field of this object.

MDN Documentation

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

impl OscillatorNode[src]

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

Getter for the onended field of this object.

MDN Documentation

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

impl OscillatorNode[src]

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

Setter for the onended field of this object.

MDN Documentation

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

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 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

Methods from Deref<Target = AudioScheduledSourceNode>

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

Deprecated:

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

Getter for the onended field of this object.

MDN Documentation

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

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

Deprecated:

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

Setter for the onended field of this object.

MDN Documentation

This API requires the following crate features to be activated: 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

Trait Implementations

impl AsRef<AudioNode> for OscillatorNode[src]

impl AsRef<AudioScheduledSourceNode> for OscillatorNode[src]

impl AsRef<EventTarget> for OscillatorNode[src]

impl AsRef<JsValue> for OscillatorNode[src]

impl AsRef<Object> for OscillatorNode[src]

impl AsRef<OscillatorNode> for OscillatorNode[src]

impl Clone for OscillatorNode[src]

impl Debug for OscillatorNode[src]

impl Deref for OscillatorNode[src]

type Target = AudioScheduledSourceNode

The resulting type after dereferencing.

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

impl OptionFromWasmAbi for OscillatorNode[src]

impl OptionIntoWasmAbi for OscillatorNode[src]

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

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

impl StructuralPartialEq for OscillatorNode[src]

impl WasmDescribe for OscillatorNode[src]

Auto Trait Implementations

impl RefUnwindSafe for OscillatorNode

impl !Send for OscillatorNode

impl !Sync for OscillatorNode

impl Unpin for OscillatorNode

impl UnwindSafe for OscillatorNode

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.