Crate tokio_dbus

Source
Expand description

github crates.io docs.rs

An asynchronous D-Bus implementation for the Tokio ecosystem.

So far this is a fairly low-level implementation, but is sufficient to write efficient servers without some of the flair associated with other clients (like proxies generated from xml).

To currently see how it’s used, see:

Modules§

org_freedesktop_dbus
Types associated with the org.freedesktop.DBus interface.
ty
Type Marker for writing to type-checked D-Bus bodies.

Structs§

Body
A read-only view into a buffer suitable for use as a body in a Message.
BodyBuf
A buffer that can be used to write a body.
Connection
An asynchronous D-Bus client.
ConnectionBuilder
Builder of a Connection.
Endianness
The endianness of a message.
Error
An error raised by this crate.
Flags
Flags inside of a D-Bus message.
LoadArray
Read an array from a buffer.
Message
A borrowed D-Bus message.
MessageBuf
An owned D-Bus message.
ObjectPath
A validated object path.
ObjectPathBuf
A validated owned object path.
ObjectPathError
An error constructing an object path.
RecvBuf
Buffer used for receiving messages through D-Bus.
SendBuf
Buffer used for sending messages through D-Bus.
Signature
A D-Bus signature.
SignatureBuf
A D-Bus signature.
SignatureError
Detailed errors raised when validation of a Signature fails.
StoreArray
Write a typed array.
StoreStruct
Write a struct.

Enums§

MessageKind
The kind of a D-Bus message.
Variant
A variant.

Traits§

Arguments
Types which can be conveniently used as arguments when extending buffers.
AsBody
Trait for types which can be cheaply coerced into a Body.
Frame
A verbatim frame that can be stored and loaded from a buffer.
Read
A type who’s reference can be read directly from a buffer.
Storable
Trait used for types which can be stored with a store() call.
Write
A type who’s reference can be written directly to a buffer.

Type Aliases§

Result
Result alias using an Error as the error type by default.