Crate dbus [−] [src]
D-Bus bindings for Rust
D-Bus is a message bus, and is mainly used in Linux for communication between processes. It is present by default on almost every Linux distribution out there, and runs in two instances - one per session, and one system-wide.
See the examples directory for some examples to get you started.
Modules
| arg |
Types and traits for easily getting a message's arguments, or appening a message with arguments. |
| obj |
Contains functionality for the "server" of a D-Bus object. A remote application can
introspect this object and call methods on it.
Deprecated - use the |
| tree |
Contains functionality for dispatching methods on a D-Bus "server".
Supersedes the |
Structs
| BusName |
A wrapper around a string that is guaranteed to be a valid D-Bus bus name. |
| Connection |
A D-Bus connection. Start here if you want to get on the D-Bus! |
| ConnectionItems |
ConnectionItem iterator |
| Error |
D-Bus Error wrapper |
| ErrorName |
A wrapper around a string that is guaranteed to be a valid D-Bus bus name. |
| Interface |
A wrapper around a string that is guaranteed to be a valid D-Bus interface name. |
| Member |
A wrapper around a string that is guaranteed to be a valid D-Bus member, i e, a signal or method name. |
| Message |
A D-Bus message. A message contains some headers (e g sender and destination address) and a list of MessageItems. |
| OwnedFd |
An RAII wrapper around Fd to ensure that file descriptor is closed when the scope ends. |
| Path |
A wrapper around a string that is guaranteed to be a valid D-Bus object path. |
| PropHandler |
Wrapper around Props that keeps a map of fetched properties. |
| Props |
Client side properties - get and set properties on a remote application. |
| Signature |
A wrapper around a string that is guaranteed to be a valid (single) D-Bus type signature. Supersedes TypeSig. |
| Watch |
A file descriptor to watch for incoming events (for async I/O). |
Enums
| ArrayError |
Errors that can happen when creating a MessageItem::Array. |
| BusType | |
| ConnectionItem |
When listening for incoming events on the D-Bus, this enum will tell you what type of incoming event has happened. |
| MessageItem |
MessageItem - used as parameters and return values from method calls, or as data added to a signal. |
| MessageType | |
| NameFlag | |
| ReleaseNameReply | |
| RequestNameReply | |
| WatchEvent |
Traits
| FromMessageItem |
Helper trait for |
Type Definitions
| TypeSig |
A TypeSig describes the type of a MessageItem. |