script::dom::bindings::codegen::Bindings::OscillatorNodeBinding::OscillatorNode_Binding

Trait OscillatorNodeMethods

Source
pub trait OscillatorNodeMethods<D>
where D: DomTypes,
{ // Required methods fn Type(&self) -> OscillatorType; fn SetType(&self, value: OscillatorType) -> Result<(), Error>; fn Frequency(&self) -> Root<Dom<<D as DomTypes>::AudioParam>>; fn Detune(&self) -> Root<Dom<<D as DomTypes>::AudioParam>>; fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, context: &<D as DomTypes>::BaseAudioContext, options: &OscillatorOptions, ) -> Result<Root<Dom<<D as DomTypes>::OscillatorNode>>, Error>; }

Required Methods§

Source

fn Type(&self) -> OscillatorType

Source

fn SetType(&self, value: OscillatorType) -> Result<(), Error>

Source

fn Frequency(&self) -> Root<Dom<<D as DomTypes>::AudioParam>>

Source

fn Detune(&self) -> Root<Dom<<D as DomTypes>::AudioParam>>

Source

fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, context: &<D as DomTypes>::BaseAudioContext, options: &OscillatorOptions, ) -> Result<Root<Dom<<D as DomTypes>::OscillatorNode>>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§