Struct dbus::blocking::SyncConnection[][src]

pub struct SyncConnection { /* fields omitted */ }
Expand description

A connection to D-Bus, Send + Sync + non-async version

Implementations

Create a new connection to the session bus.

Create a new connection to the system-wide bus.

Get the connection’s unique name.

It’s usually something like “:1.54”

Create a convenience struct for easier calling of many methods on the same destination and path.

Request a name on the D-Bus.

For detailed information on the flags and return values, see the libdbus documentation.

Release a previously requested name on the D-Bus.

Adds a new match to the connection, and sets up a callback when this message arrives.

The returned value can be used to remove the match. The match is also removed if the callback returns “false”.

Adds a new match to the connection, without setting up a callback when this message arrives.

Removes a match from the connection, without removing any callbacks.

Removes a previously added match and callback from the connection.

Tries to handle an incoming message if there is one. If there isn’t one, it will wait up to timeout

This method only takes “&self” instead of “&mut self”, but it is a logic error to call it recursively and might lead to panics or deadlocks.

The channel for this connection

Trait Implementations

Sends a message over the D-Bus and blocks, waiting for a reply or a timeout. This is used for method calls. Read more

Performs the conversion.

Internal helper trait

Type of callback

Add a callback to be called in case a message matches. Read more

Remove a previously added callback.

Schedules a message for sending. 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

Performs the conversion.

Performs the conversion.

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.