Crate remora_hostname
Expand description
D-Bus client for systemd-hostnamed.
The crate has an async proxy for the org.freedesktop.hostname1
interface. Use Hostname1Proxy with a connection to the system bus.
let connection = zbus::Connection::system().await?;
let proxy = remora_hostname::Hostname1Proxy::new(&connection).await?;
println!("{}", proxy.hostname().await?);§Versions
The crate covers systemd 262. Members without a version note exist in systemd 249 and later. Other members say in which release they appeared. Calls to a member that the running service lacks fail with a D-Bus error.
Upstream documentation: https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.hostname1.html.
Re-exports§
pub use zbus;
Modules§
Structs§
- Hostname1
Proxy - Client for the
org.freedesktop.hostname1interface of systemd-hostnamed.
Enums§
- Chassis
- The chassis type of the machine.
- Hostname
Source - Where the current hostname comes from.