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]

Test if this extension module is available in the server.

The callback must accept an integer, which indicates version.

Subscribe to changes in the device database.

The callback must accept a bool, which indicates success.

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.

Read the formats for all present devices from the device database.

Read an entry from the device database.

Read an entry from the device database.

The callback must accept a bool, which indicates success.

Trait Implementations

impl Drop for DeviceRestore
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for DeviceRestore

impl !Sync for DeviceRestore