pub enum Audiodev {
coreaudio {
base: AudiodevBase,
coreaudio: AudiodevCoreaudioOptions,
},
dbus {
base: AudiodevBase,
dbus: AudiodevGenericOptions,
},
oss {
base: AudiodevBase,
oss: AudiodevOssOptions,
},
wav {
base: AudiodevBase,
wav: AudiodevWavOptions,
},
dsound {
base: AudiodevBase,
dsound: AudiodevDsoundOptions,
},
none {
base: AudiodevBase,
none: AudiodevGenericOptions,
},
sdl {
base: AudiodevBase,
sdl: AudiodevSdlOptions,
},
spice {
base: AudiodevBase,
spice: AudiodevGenericOptions,
},
alsa {
base: AudiodevBase,
alsa: AudiodevAlsaOptions,
},
jack {
base: AudiodevBase,
jack: AudiodevJackOptions,
},
pa {
base: AudiodevBase,
pa: AudiodevPaOptions,
},
}Variants
coreaudio
dbus
oss
wav
dsound
none
sdl
spice
alsa
jack
pa
Implementations
sourceimpl Audiodev
impl Audiodev
pub fn driver(&self) -> AudiodevDriver
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Audiodev
impl<'de> Deserialize<'de> for Audiodev
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<(AudiodevAlsaOptions, AudiodevBase)> for Audiodev
impl From<(AudiodevAlsaOptions, AudiodevBase)> for Audiodev
sourcefn from(val: (AudiodevAlsaOptions, AudiodevBase)) -> Self
fn from(val: (AudiodevAlsaOptions, AudiodevBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(AudiodevCoreaudioOptions, AudiodevBase)> for Audiodev
impl From<(AudiodevCoreaudioOptions, AudiodevBase)> for Audiodev
sourcefn from(val: (AudiodevCoreaudioOptions, AudiodevBase)) -> Self
fn from(val: (AudiodevCoreaudioOptions, AudiodevBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(AudiodevDsoundOptions, AudiodevBase)> for Audiodev
impl From<(AudiodevDsoundOptions, AudiodevBase)> for Audiodev
sourcefn from(val: (AudiodevDsoundOptions, AudiodevBase)) -> Self
fn from(val: (AudiodevDsoundOptions, AudiodevBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(AudiodevJackOptions, AudiodevBase)> for Audiodev
impl From<(AudiodevJackOptions, AudiodevBase)> for Audiodev
sourcefn from(val: (AudiodevJackOptions, AudiodevBase)) -> Self
fn from(val: (AudiodevJackOptions, AudiodevBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(AudiodevOssOptions, AudiodevBase)> for Audiodev
impl From<(AudiodevOssOptions, AudiodevBase)> for Audiodev
sourcefn from(val: (AudiodevOssOptions, AudiodevBase)) -> Self
fn from(val: (AudiodevOssOptions, AudiodevBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(AudiodevPaOptions, AudiodevBase)> for Audiodev
impl From<(AudiodevPaOptions, AudiodevBase)> for Audiodev
sourcefn from(val: (AudiodevPaOptions, AudiodevBase)) -> Self
fn from(val: (AudiodevPaOptions, AudiodevBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(AudiodevSdlOptions, AudiodevBase)> for Audiodev
impl From<(AudiodevSdlOptions, AudiodevBase)> for Audiodev
sourcefn from(val: (AudiodevSdlOptions, AudiodevBase)) -> Self
fn from(val: (AudiodevSdlOptions, AudiodevBase)) -> Self
Converts to this type from the input type.
sourceimpl From<(AudiodevWavOptions, AudiodevBase)> for Audiodev
impl From<(AudiodevWavOptions, AudiodevBase)> for Audiodev
sourcefn from(val: (AudiodevWavOptions, AudiodevBase)) -> Self
fn from(val: (AudiodevWavOptions, AudiodevBase)) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Audiodev
impl Send for Audiodev
impl Sync for Audiodev
impl Unpin for Audiodev
impl UnwindSafe for Audiodev
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more