[−][src]Struct libpulse_binding::context::ext_device_manager::DeviceManager
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]
pub fn test<F>(&mut self, callback: F) -> Operation<dyn FnMut(u32)> where
F: FnMut(u32) + 'static,
[src]
F: FnMut(u32) + 'static,
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,
[src]
&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.
pub fn set_device_description<F>(
&mut self,
device: &str,
description: &str,
callback: F
) -> Operation<dyn FnMut(bool)> where
F: FnMut(bool) + 'static,
[src]
&mut self,
device: &str,
description: &str,
callback: F
) -> Operation<dyn FnMut(bool)> where
F: FnMut(bool) + 'static,
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.
pub fn delete<F>(
&mut self,
devices: &[&str],
callback: F
) -> Operation<dyn FnMut(bool)> where
F: FnMut(bool) + 'static,
[src]
&mut self,
devices: &[&str],
callback: F
) -> Operation<dyn FnMut(bool)> where
F: FnMut(bool) + 'static,
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.
pub fn enable_role_device_priority_routing<F>(
&mut self,
enable: bool,
callback: F
) -> Operation<dyn FnMut(bool)> where
F: FnMut(bool) + 'static,
[src]
&mut self,
enable: bool,
callback: F
) -> Operation<dyn FnMut(bool)> where
F: FnMut(bool) + 'static,
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.
pub fn reorder_devices_for_role<F>(
&mut self,
role: &str,
devices: &[&str],
callback: F
) -> Operation<dyn FnMut(bool)> where
F: FnMut(bool) + 'static,
[src]
&mut self,
role: &str,
devices: &[&str],
callback: F
) -> Operation<dyn FnMut(bool)> where
F: FnMut(bool) + 'static,
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.
pub fn subscribe<F>(
&mut self,
enable: bool,
callback: F
) -> Operation<dyn FnMut(bool)> where
F: FnMut(bool) + 'static,
[src]
&mut self,
enable: bool,
callback: F
) -> Operation<dyn FnMut(bool)> where
F: FnMut(bool) + 'static,
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.
pub fn set_subscribe_cb<F>(&mut self, callback: F) where
F: FnMut() + 'static,
[src]
F: FnMut() + 'static,
Sets the subscription callback that is called when subscribe
was
called.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,