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§
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>
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.