[][src]Struct web_sys::ConstantSourceNode

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

The ConstantSourceNode class.

MDN Documentation

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

Implementations

impl ConstantSourceNode[src]

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

Getter for the offset field of this object.

MDN Documentation

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

impl ConstantSourceNode[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: ConstantSourceNode

impl ConstantSourceNode[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: ConstantSourceNode

impl ConstantSourceNode[src]

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

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

MDN Documentation

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

impl ConstantSourceNode[src]

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

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

MDN Documentation

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

impl ConstantSourceNode[src]

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

The start() method.

MDN Documentation

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

impl ConstantSourceNode[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: ConstantSourceNode

impl ConstantSourceNode[src]

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

The stop() method.

MDN Documentation

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

impl ConstantSourceNode[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: ConstantSourceNode

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 ConstantSourceNode[src]

impl AsRef<AudioScheduledSourceNode> for ConstantSourceNode[src]

impl AsRef<ConstantSourceNode> for ConstantSourceNode[src]

impl AsRef<EventTarget> for ConstantSourceNode[src]

impl AsRef<JsValue> for ConstantSourceNode[src]

impl AsRef<Object> for ConstantSourceNode[src]

impl Clone for ConstantSourceNode[src]

impl Debug for ConstantSourceNode[src]

impl Deref for ConstantSourceNode[src]

type Target = AudioScheduledSourceNode

The resulting type after dereferencing.

impl Eq for ConstantSourceNode[src]

impl From<ConstantSourceNode> for JsValue[src]

impl From<ConstantSourceNode> for AudioScheduledSourceNode[src]

impl From<ConstantSourceNode> for AudioNode[src]

impl From<ConstantSourceNode> for EventTarget[src]

impl From<ConstantSourceNode> for Object[src]

impl From<JsValue> for ConstantSourceNode[src]

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

impl OptionFromWasmAbi for ConstantSourceNode[src]

impl OptionIntoWasmAbi for ConstantSourceNode[src]

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

impl PartialEq<ConstantSourceNode> for ConstantSourceNode[src]

impl RefFromWasmAbi for ConstantSourceNode[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<ConstantSourceNode>

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 ConstantSourceNode[src]

impl StructuralPartialEq for ConstantSourceNode[src]

impl WasmDescribe for ConstantSourceNode[src]

Auto Trait Implementations

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.