pub struct Introspector { /* private fields */ }
Expand description

A wrapper object providing introspection routines to a context.

Implementations

Get information about a sink by its name.

Returns None on error, i.e. invalid arguments or state.

Get information about a sink by its index.

Returns None on error, i.e. invalid arguments or state.

Get the complete sink list.

Returns None on error, i.e. invalid arguments or state.

Set the volume of a sink device specified by its index.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the volume of a sink device specified by its name.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the mute switch of a sink device specified by its index.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the mute switch of a sink device specified by its name.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Suspend/Resume a sink.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Suspend/Resume a sink.

If index is ::def::INVALID_INDEX all sinks will be suspended. Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Change the profile of a sink.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Change the profile of a sink.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Get information about a source by its name.

Returns None on error, i.e. invalid arguments or state.

Get information about a source by its index.

Returns None on error, i.e. invalid arguments or state.

Get the complete source list.

Returns None on error, i.e. invalid arguments or state.

Set the volume of a source device specified by its index.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the volume of a source device specified by its name.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the mute switch of a source device specified by its index.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the mute switch of a source device specified by its name.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Suspend/Resume a source.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Suspend/Resume a source.

If index is ::def::INVALID_INDEX, all sources will be suspended. Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Change the profile of a source.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Change the profile of a source.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Get some information about the server.

Returns None on error, i.e. invalid arguments or state.

Get some information about a module by its index.

Returns None on error, i.e. invalid arguments or state.

Get the complete list of currently loaded modules.

Returns None on error, i.e. invalid arguments or state.

Load a module.

Returns None on error, i.e. invalid arguments or state. The callback is provided with the index.

Unload a module.

Returns None on error, i.e. invalid arguments or state.

The callback must accept a bool, which indicates success.

Get information about a client by its index.

Returns None on error, i.e. invalid arguments or state.

Get the complete client list.

Returns None on error, i.e. invalid arguments or state.

Kill a client.

Returns None on error, i.e. invalid arguments or state.

The callback must accept a bool, which indicates success.

Get information about a card by its index.

Returns None on error, i.e. invalid arguments or state.

Get information about a card by its name.

Returns None on error, i.e. invalid arguments or state.

Get the complete card list.

Returns None on error, i.e. invalid arguments or state.

Change the profile of a card.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Change the profile of a card.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the latency offset of a port.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Get some information about a sink input by its index.

Returns None on error, i.e. invalid arguments or state.

Get the complete sink input list.

Returns None on error, i.e. invalid arguments or state.

Move the specified sink input to a different sink.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Move the specified sink input to a different sink.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the volume of a sink input stream.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the mute switch of a sink input stream.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Kill a sink input.

Returns None on error, i.e. invalid arguments or state.

The callback must accept a bool, which indicates success.

Get information about a source output by its index.

Returns None on error, i.e. invalid arguments or state.

Get the complete list of source outputs.

Returns None on error, i.e. invalid arguments or state.

Move the specified source output to a different source.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Move the specified source output to a different source.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the volume of a source output stream.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Set the mute switch of a source output stream.

Returns None on error, i.e. invalid arguments or state.

The optional callback must accept a bool, which indicates success.

Kill a source output.

Returns None on error, i.e. invalid arguments or state.

The callback must accept a bool, which indicates success.

Get daemon memory block statistics.

Returns None on error, i.e. invalid arguments or state.

Get information about a sample by its name.

Returns None on error, i.e. invalid arguments or state.

Get information about a sample by its index.

Returns None on error, i.e. invalid arguments or state.

Get the complete list of samples stored in the daemon.

Returns None on error, i.e. invalid arguments or state.

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.