Struct dbus_tokio::AConnection [] [src]

pub struct AConnection { /* fields omitted */ }

A Tokio enabled D-Bus connection.

While an AConnection exists, it will consume all incoming messages. Creating more than one AConnection for the same Connection is not recommended.

Methods

impl AConnection
[src]

[src]

Create an AConnection, which spawns a task on the core.

The task handles incoming messages, and continues to do so until the AConnection is dropped.

[src]

Sends a method call message, and returns a Future for the method return.

[src]

Returns a stream of incoming messages.

Creating more than one stream for the same AConnection is not supported; this function will fail with an error if you try. Drop the first stream if you need to create a second one.

Trait Implementations

impl Debug for AConnection
[src]

[src]

Formats the value using the given formatter.

impl Drop for AConnection
[src]

[src]

Executes the destructor for this type. Read more