Struct libpulse_binding::context::ext_device_manager::DeviceManager
source ·
[−]pub struct DeviceManager { /* private fields */ }
Expand description
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.
Implementations
Tests if this extension module is available in the server.
Panics if the underlying C function returns a null pointer.
pub fn read<F>(
&mut self,
callback: F
) -> Operation<dyn FnMut(ListResult<&Info<'_>>)> where
F: FnMut(ListResult<&Info<'_>>) + 'static,
pub fn read<F>(
&mut self,
callback: F
) -> Operation<dyn FnMut(ListResult<&Info<'_>>)> where
F: FnMut(ListResult<&Info<'_>>) + 'static,
Reads all entries from the device database.
Panics if the underlying C function returns a null pointer.
Sets the description for a device.
The callback must accept a bool
, which indicates success.
Panics if the underlying C function returns a null pointer.
Deletes entries from the device database.
The callback must accept a bool
, which indicates success.
Panics if the underlying C function returns a null pointer.
Enables the role-based device-priority routing mode.
The callback must accept a bool
, which indicates success.
Panics if the underlying C function returns a null pointer.
Reorders the position of a given device in the priority list to give preference to it.
The callback must accept a bool
, which indicates success.
Panics if the underlying C function returns a null pointer.
Subscribes to changes in the device database.
The callback must accept a bool
, which indicates success.
Panics if the underlying C function returns a null pointer.
Sets the subscription callback that is called when subscribe()
was
called.