pub enum AudioOutput {
Speaker,
Receiver,
WiredHeadset,
Bluetooth,
CarAudio,
AirPlay,
Hdmi,
Usb,
Other,
}Expand description
Where the audio goes, in platform-neutral terms (AVAudioSession port types, Android’s
AudioDevice; the web’s MediaDeviceInfo.kind only ever gives other).
Variants§
Speaker
The built-in loudspeaker; sent as speaker.
Receiver
The phone earpiece (builtInReceiver, Android Earpiece).
WiredHeadset
Wired headphones or a wired headset; sent as wired_headset.
Bluetooth
A Bluetooth headset, headphones or speaker; sent as bluetooth.
CarAudio
A car’s audio system; sent as car_audio.
AirPlay
An AirPlay receiver; sent as air_play.
Hdmi
An HDMI display or receiver; sent as hdmi.
Usb
A USB audio device; sent as usb.
Other
An output the platform does not name; sent as other.
Trait Implementations§
Source§impl Clone for AudioOutput
impl Clone for AudioOutput
impl Copy for AudioOutput
Source§impl Debug for AudioOutput
impl Debug for AudioOutput
impl Eq for AudioOutput
Source§impl PartialEq for AudioOutput
impl PartialEq for AudioOutput
impl StructuralPartialEq for AudioOutput
Auto Trait Implementations§
impl Forget for AudioOutput
impl Freeze for AudioOutput
impl Move for AudioOutput
impl RefUnwindSafe for AudioOutput
impl Send for AudioOutput
impl Sync for AudioOutput
impl Unpin for AudioOutput
impl UnsafeUnpin for AudioOutput
impl UnwindSafe for AudioOutput
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