pub(crate) trait OscillatorNodeMethods<D: DomTypes> {
    // Required methods
    fn Type(&self) -> OscillatorType;
    fn SetType(&self, value: OscillatorType) -> ErrorResult;
    fn Frequency(&self) -> DomRoot<D::AudioParam>;
    fn Detune(&self) -> DomRoot<D::AudioParam>;
    fn Constructor(
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        context: &D::BaseAudioContext,
        options: &OscillatorOptions,
    ) -> Fallible<DomRoot<D::OscillatorNode>>;
}

Required Methods§

Source

fn Type(&self) -> OscillatorType

Source

fn SetType(&self, value: OscillatorType) -> ErrorResult

Source

fn Frequency(&self) -> DomRoot<D::AudioParam>

Source

fn Detune(&self) -> DomRoot<D::AudioParam>

Source

fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, context: &D::BaseAudioContext, options: &OscillatorOptions, ) -> Fallible<DomRoot<D::OscillatorNode>>

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§