pub(crate) 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(
cx: &mut JSContext,
global: &<D as DomTypes>::Window,
proto: Option<Handle<'_, *mut JSObject>>,
context: &<D as DomTypes>::BaseAudioContext,
options: &OscillatorOptions,
) -> Result<Root<Dom<<D as DomTypes>::OscillatorNode>>, Error>;
}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( cx: &mut JSContext, global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, 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.