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

Test if this extension module is available in the server.

Panics if the underlying C function returns a null pointer.

Read 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.

Delete entries from the device database.

The callback must accept a bool, which indicates success.

Panics if the underlying C function returns a null pointer.

Enable 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.

Prefer a given device in the priority list.

The callback must accept a bool, which indicates success.

Panics if the underlying C function returns a null pointer.

Subscribe 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.

Set the subscription callback that is called when subscribe was called.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.