[][src]Struct web_sys::AudioBufferSourceOptions

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

The AudioBufferSourceOptions dictionary

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

Methods

impl AudioBufferSourceOptions[src]

pub fn new() -> AudioBufferSourceOptions[src]

Construct a new AudioBufferSourceOptions

This API requires the following crate features to be activated: AudioBuffer, AudioBufferSourceOptions

pub fn buffer(&mut self, val: Option<&AudioBuffer>) -> &mut Self[src]

Configure the buffer field of this object

This API requires the following crate features to be activated: AudioBuffer, AudioBufferSourceOptions

pub fn detune(&mut self, val: f32) -> &mut Self[src]

Configure the detune field of this object

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

pub fn loop_(&mut self, val: bool) -> &mut Self[src]

Configure the loop field of this object

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

pub fn loop_end(&mut self, val: f64) -> &mut Self[src]

Configure the loopEnd field of this object

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

pub fn loop_start(&mut self, val: f64) -> &mut Self[src]

Configure the loopStart field of this object

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

pub fn playback_rate(&mut self, val: f32) -> &mut Self[src]

Configure the playbackRate field of this object

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

Trait Implementations

impl AsRef<JsValue> for AudioBufferSourceOptions[src]

impl Clone for AudioBufferSourceOptions[src]

impl Debug for AudioBufferSourceOptions[src]

impl From<AudioBufferSourceOptions> for JsValue[src]

impl FromWasmAbi for AudioBufferSourceOptions[src]

type Abi = <Object as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for AudioBufferSourceOptions[src]

type Abi = <Object as IntoWasmAbi>::Abi

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

impl<'a> IntoWasmAbi for &'a AudioBufferSourceOptions[src]

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

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

impl JsCast for AudioBufferSourceOptions[src]

impl OptionFromWasmAbi for AudioBufferSourceOptions[src]

impl OptionIntoWasmAbi for AudioBufferSourceOptions[src]

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

impl RefFromWasmAbi for AudioBufferSourceOptions[src]

type Abi = <Object as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<AudioBufferSourceOptions>

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 WasmDescribe for AudioBufferSourceOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for AudioBufferSourceOptions

impl !Send for AudioBufferSourceOptions

impl !Sync for AudioBufferSourceOptions

impl Unpin for AudioBufferSourceOptions

impl UnwindSafe for AudioBufferSourceOptions

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.