Struct libpulse_binding::context::ext_device_restore::DeviceRestore [−][src]
pub struct DeviceRestore { /* fields omitted */ }
A wrapper object providing device restore routines to a context. Note: Saves a copy of active multi-use closure callbacks, which it frees on drop.
Methods
impl DeviceRestore
[src]
impl DeviceRestore
pub 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.
The callback must accept an integer, which indicates version.
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(Device, u32) + 'static,
[src]
pub fn set_subscribe_cb<F>(&mut self, callback: F) where
F: FnMut(Device, u32) + 'static,
Set the subscription callback that is called when subscribe
was
called.
The callback must accept two parameters, firstly a ::def::Device
variant, and secondly an
integer index.
pub fn read_formats_all<F>(
&mut self,
callback: F
) -> Operation<FnMut(ListResult<&Info>)> where
F: FnMut(ListResult<&Info>) + 'static,
[src]
pub fn read_formats_all<F>(
&mut self,
callback: F
) -> Operation<FnMut(ListResult<&Info>)> where
F: FnMut(ListResult<&Info>) + 'static,
Read the formats for all present devices from the device database.
pub fn read_formats<F>(
&mut self,
type_: Device,
index: u32,
callback: F
) -> Operation<FnMut(ListResult<&Info>)> where
F: FnMut(ListResult<&Info>) + 'static,
[src]
pub fn read_formats<F>(
&mut self,
type_: Device,
index: u32,
callback: F
) -> Operation<FnMut(ListResult<&Info>)> where
F: FnMut(ListResult<&Info>) + 'static,
Read an entry from the device database.
pub fn save_formats<F>(
&mut self,
type_: Device,
index: u32,
formats: &mut [&mut Info],
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static,
[src]
pub fn save_formats<F>(
&mut self,
type_: Device,
index: u32,
formats: &mut [&mut Info],
callback: F
) -> Operation<FnMut(bool)> where
F: FnMut(bool) + 'static,
Read an entry from the device database.
The callback must accept a bool
, which indicates success.
Trait Implementations
impl Drop for DeviceRestore
[src]
impl Drop for DeviceRestore
Auto Trait Implementations
impl !Send for DeviceRestore
impl !Send for DeviceRestore
impl !Sync for DeviceRestore
impl !Sync for DeviceRestore