dbus

library dbus

Modules

dbus

A D-Bus client (PLAN.md, F6c): a connection to a bus over a Unix socket, authenticated as the process's user (SASL EXTERNAL), which sends method calls, replies, errors and signals and receives them, for the accessibility bus and the desktop portal and any program using the session or system bus. Calls can wait for their reply; everything else arrives through receive, which never blocks, the connection's socket polled beside a program's own (fd).

wire

D-Bus's wire format, little-endian: values written and read by their signatures, each aligned to its size from the message's start, and the messages around them (a header of fixed fields and a field array, then the body).

Dependencies

std::dispose

Values that must be released by a call, not only freed.

std::equal

Equality: the Equal interface.

std::ffi

Values C holds for Alloy (LANGUAGE_SPEC.md section 6.3): a C library that calls back through an extern (...) -> R function often passes along a void * its caller gave it. c_pointer is that pointer: made from a reference, read back as one by the callback, which names the type it was made from.

std::float_digits

The shortest decimal digits of a float that read back to the same value, by Ryu (Ulf Adams, "Ryu: fast float-to-string conversion", PLDI 2018), which std::format writes floats with (LANGUAGE_SPEC.md section 6.5). Integer arithmetic only, so compile-time code formats floats too.

std::format

Formatting values as text: the Format interface.

std::hash

Hashing: the Key interface of hash map keys.

std::io

Console and file input/output.

std::iterable

The iteration interfaces driving for loops.

std::math

Mathematics over floats (LANGUAGE_SPEC.md section 6.1a).

std::number

The numeric constraint interface.

std::option

The optional value: a payload (Some) or its absence (None).

std::process

The running process's environment.

std::string

The owned, growable byte string.

std::text

Searching and parsing byte text.

std::time

Time: a monotonic clock for measuring, the wall clock, sleeping, and the calendar: days of the proleptic Gregorian calendar, times of day and the system's offset from UTC; time zones by name from the platform's database, dates and times on a zone's clocks, and ISO 8601, RFC 3339 and HTTP dates (F12e, notes at the end).

std::vector

The growable array.

std::web

The browser's side of a web-wasm32 program, whose event loop is the browser's: the program sets up what the browser calls back, such as animation frames and input events, then lets main return while it keeps running. Externs a module declares come from the JavaScript beside it, <module>.web.js (section 6.3), as this module's do.