Struct libpulse_binding::context::ext_device_manager::DeviceManager [−][src]
pub struct DeviceManager { /* fields omitted */ }A wrapper object providing device manager routines to a context. Note: Saves a copy of active multi-use closure callbacks, which it frees on drop.
Methods
impl DeviceManager[src]
impl DeviceManagerpub fn test<F>(&mut self, callback: F) -> Operation<FnMut(u32)> where
F: FnMut(u32) + 'static, [src]
pub fn test<F>(&mut self, callback: F) -> Operation<FnMut(u32)> where
F: FnMut(u32) + 'static, Test if this extension module is available in the server.
pub fn read<F>(&mut self, callback: F) -> Operation<FnMut(ListResult<&Info>)> where
F: FnMut(ListResult<&Info>) + 'static, [src]
pub fn read<F>(&mut self, callback: F) -> Operation<FnMut(ListResult<&Info>)> where
F: FnMut(ListResult<&Info>) + 'static, Read all entries from the device database.
pub fn set_device_description<F>(
&mut self,
device: &str,
description: &str,
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static, [src]
pub fn set_device_description<F>(
&mut self,
device: &str,
description: &str,
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static, Sets the description for a device.
The callback must accept a bool, which indicates success.
pub fn delete<F>(
&mut self,
devices: &[&str],
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static, [src]
pub fn delete<F>(
&mut self,
devices: &[&str],
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static, Delete entries from the device database.
The callback must accept a bool, which indicates success.
pub fn enable_role_device_priority_routing<F>(
&mut self,
enable: bool,
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static, [src]
pub fn enable_role_device_priority_routing<F>(
&mut self,
enable: bool,
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static, Enable the role-based device-priority routing mode.
The callback must accept a bool, which indicates success.
pub fn reorder_devices_for_role<F>(
&mut self,
role: &str,
devices: &[&str],
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static, [src]
pub fn reorder_devices_for_role<F>(
&mut self,
role: &str,
devices: &[&str],
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static, Prefer a given device in the priority list.
The callback must accept a bool, which indicates success.
pub fn subscribe<F>(
&mut self,
enable: bool,
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static, [src]
pub fn subscribe<F>(
&mut self,
enable: bool,
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static, Subscribe to changes in the device database.
The callback must accept a bool, which indicates success.
pub fn set_subscribe_cb<F>(&mut self, callback: F) where
F: FnMut() + 'static, [src]
pub fn set_subscribe_cb<F>(&mut self, callback: F) where
F: FnMut() + 'static, Set the subscription callback that is called when subscribe was
called.
Trait Implementations
impl Drop for DeviceManager[src]
impl Drop for DeviceManagerAuto Trait Implementations
impl !Send for DeviceManager
impl !Send for DeviceManagerimpl !Sync for DeviceManager
impl !Sync for DeviceManager