webbluetooth_linux/dbus/mod.rs
1//! A D-Bus client and server, spoken directly.
2//!
3//! D-Bus is a wire protocol over a Unix socket, so this talks it rather than
4//! binding `libdbus`: [`codec`] marshals, [`message`] frames, [`connection`]
5//! authenticates and dispatches. No C library, no bindings, no build step.
6//!
7//! [`codec`] and [`value`] are pure byte manipulation and build everywhere, so
8//! the fiddly part — alignment and signature-directed decoding — is unit-tested
9//! on any host rather than only inside a container.
10
11pub mod codec;
12pub mod value;
13
14#[cfg(unix)]
15pub mod connection;
16pub mod fds;
17#[cfg(unix)]
18pub mod message;
19
20pub use codec::{CodecError, Decoder, Encoder};
21pub use value::Value;
22
23#[cfg(unix)]
24pub use connection::Connection;
25#[cfg(unix)]
26pub use message::{Message, MessageType};