pub enum AudioContextOptions {
RealTimeAudioContext(RealTimeAudioContextOptions),
OfflineAudioContext(OfflineAudioContextOptions),
}
Expand description
User-specified options for a real time or offline audio context.
Variants§
RealTimeAudioContext(RealTimeAudioContextOptions)
OfflineAudioContext(OfflineAudioContextOptions)
Trait Implementations§
source§impl Clone for AudioContextOptions
impl Clone for AudioContextOptions
source§fn clone(&self) -> AudioContextOptions
fn clone(&self) -> AudioContextOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for AudioContextOptions
impl Default for AudioContextOptions
source§impl From<OfflineAudioContextOptions> for AudioContextOptions
impl From<OfflineAudioContextOptions> for AudioContextOptions
source§fn from(options: OfflineAudioContextOptions) -> Self
fn from(options: OfflineAudioContextOptions) -> Self
Converts to this type from the input type.
source§impl From<RealTimeAudioContextOptions> for AudioContextOptions
impl From<RealTimeAudioContextOptions> for AudioContextOptions
source§fn from(options: RealTimeAudioContextOptions) -> Self
fn from(options: RealTimeAudioContextOptions) -> Self
Converts to this type from the input type.
impl Copy for AudioContextOptions
Auto Trait Implementations§
impl Freeze for AudioContextOptions
impl RefUnwindSafe for AudioContextOptions
impl Send for AudioContextOptions
impl Sync for AudioContextOptions
impl Unpin for AudioContextOptions
impl UnwindSafe for AudioContextOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more