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]
fn new(c: Rc<Connection>, h: CoreHandle) -> Result<AConnection>
[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.
fn method_call(&self, m: Message) -> Result<AMethodCall, &'static str>
[src]
Sends a method call message, and returns a Future for the method return.
fn messages(&self) -> Result<AMessageStream, &'static str>
[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.