[go: up one dir, main page]

Module nonblock

Module nonblock 

Source
Expand description

Async version of connection.

This module requires the futures feature to be enabled.

Current status:

  • Basic client functionality is up and running, i e, you can make method calls and receive incoming messages (e g signals).
  • As for server side code, you can use the tree module with this connection, but it does not support async method handlers.

You’re probably going to need a companion crate - dbus-tokio - for this connection to make sense. (Although you can also just call read_write and process_all at regular intervals, and possibly set a timeout handler.)

Modules§

stdintf
This module contains some standard interfaces and an easy way to call them.

Structs§

Connection
A connection to D-Bus, async version, which is Send but not Sync.
LocalConnection
A connection to D-Bus, thread local + async version
MethodReply
Future method reply, used while waiting for a method call reply from the server.
MsgMatch
A struct used to handle incoming matches
Proxy
A struct that wraps a connection, destination and path.
SyncConnection
A connection to D-Bus, Send + Sync + async version

Traits§

NonblockReply
Internal helper trait for async method replies.
Process
Internal helper trait, implemented for connections that process incoming messages.

Type Aliases§

TimeoutMakerCb
Internal callback for the executor when a timeout needs to be made.
WakerCb
Internal callback for the executor when we need wakeup a task