Enum wasapi::DeviceState
source · pub enum DeviceState {
Active,
Disabled,
NotPresent,
Unplugged,
}
Expand description
Possible states for an IMMDevice, an enum representing the DEVICE_STATE_XXX constants
Variants§
Active
The audio endpoint device is active. That is, the audio adapter that connects to the endpoint device is present and enabled. In addition, if the endpoint device plugs int a jack on the adapter, then the endpoint device is plugged in.
Disabled
The audio endpoint device is disabled. The user has disabled the device in the Windows multimedia control panel, Mmsys.cpl
NotPresent
The audio endpoint device is not present because the audio adapter that connects to the endpoint device has been removed from the system, or the user has disabled the adapter device in Device Manager.
Unplugged
The audio endpoint device is unplugged. The audio adapter that contains the jack for the endpoint device is present and enabled, but the endpoint device is not plugged into the jack. Only a device with jack-presence detection can be in this state.
Trait Implementations§
source§impl Debug for DeviceState
impl Debug for DeviceState
source§impl Display for DeviceState
impl Display for DeviceState
source§impl PartialEq for DeviceState
impl PartialEq for DeviceState
source§fn eq(&self, other: &DeviceState) -> bool
fn eq(&self, other: &DeviceState) -> bool
self
and other
values to be equal, and is used
by ==
.