Trait script::dom::bindings::codegen::Bindings::OfflineAudioContextBinding::OfflineAudioContext_Binding::OfflineAudioContextMethods
source · pub trait OfflineAudioContextMethods {
// Required methods
fn Length(&self) -> u32;
fn GetOncomplete(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOncomplete(&self, value: Option<Rc<EventHandlerNonNull>>);
fn StartRendering(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> Rc<Promise>;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
contextOptions: &OfflineAudioContextOptions,
) -> Result<Root<Dom<OfflineAudioContext>>, Error>;
fn Constructor_(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
numberOfChannels: u32,
length: u32,
sampleRate: Finite<f32>,
) -> Result<Root<Dom<OfflineAudioContext>>, Error>;
}
Required Methods§
fn Length(&self) -> u32
fn GetOncomplete(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOncomplete(&self, value: Option<Rc<EventHandlerNonNull>>)
fn StartRendering(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> Rc<Promise>
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, contextOptions: &OfflineAudioContextOptions, ) -> Result<Root<Dom<OfflineAudioContext>>, Error>
fn Constructor_( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, numberOfChannels: u32, length: u32, sampleRate: Finite<f32>, ) -> Result<Root<Dom<OfflineAudioContext>>, Error>
Object Safety§
This trait is not object safe.