Struct wasapi::DeviceCollection [−][src]
pub struct DeviceCollection { /* fields omitted */ }Expand description
Struct wrapping an IMMDeviceCollection.
Implementations
impl DeviceCollection[src]
impl DeviceCollection[src]pub fn new(direction: &Direction) -> Result<DeviceCollection, Box<dyn Error>>[src]
pub fn new(direction: &Direction) -> Result<DeviceCollection, Box<dyn Error>>[src]Get an IMMDeviceCollection of all active playback or capture devices
pub fn get_nbr_devices(&self) -> Result<u32, Box<dyn Error>>[src]
pub fn get_nbr_devices(&self) -> Result<u32, Box<dyn Error>>[src]Get the number of devices in an IMMDeviceCollection