[][src]Struct web_sys::Worklet

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

The Worklet class.

MDN Documentation

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

Methods

impl Worklet[src]

pub fn add_module(&self, module_url: &str) -> Result<Promise, JsValue>[src]

The addModule() method.

MDN Documentation

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

impl Worklet[src]

pub fn add_module_with_options(
    &self,
    module_url: &str,
    options: &WorkletOptions
) -> Result<Promise, JsValue>
[src]

The addModule() method.

MDN Documentation

This API requires the following crate features to be activated: Worklet, WorkletOptions

Trait Implementations

impl AsRef<JsValue> for Worklet[src]

impl AsRef<Object> for Worklet[src]

impl AsRef<Worklet> for AudioWorklet[src]

impl AsRef<Worklet> for Worklet[src]

impl Clone for Worklet[src]

impl Debug for Worklet[src]

impl Deref for Worklet[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for Worklet[src]

impl From<AudioWorklet> for Worklet[src]

impl From<JsValue> for Worklet[src]

impl From<Worklet> for JsValue[src]

impl From<Worklet> for Object[src]

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

impl OptionFromWasmAbi for Worklet[src]

impl OptionIntoWasmAbi for Worklet[src]

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

impl PartialEq<Worklet> for Worklet[src]

impl RefFromWasmAbi for Worklet[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<Worklet>

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

impl StructuralPartialEq for Worklet[src]

impl WasmDescribe for Worklet[src]

Auto Trait Implementations

impl RefUnwindSafe for Worklet

impl !Send for Worklet

impl !Sync for Worklet

impl Unpin for Worklet

impl UnwindSafe for Worklet

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.