Expand description
NetworkManager backend for netcore.
Provides two things the netlink backend can’t:
- Profiles — the NM-managed connection name, autoconnect flag, and
type string. Consumed by [
profiles_by_iface] so the netlink backend’s connections can be enriched. - Write actions — prefer/reconnect/forget/set_autoconnect, exposed
via the
Actionstrait.
Runs sync like the other backends: builds a tokio current_thread
runtime per call (~1ms). NM D-Bus calls complete in single-digit ms
on a warm bus, so there’s no point keeping the connection around.
When NM isn’t on the bus, NmBackend::new returns None and the
CLI runs without profile info or write actions — the tool degrades,
it doesn’t fail.
Structs§
- NmBackend
- Present only when NM is reachable on the system bus at construction. Holds no persistent state — each call opens a fresh D-Bus connection.
Functions§
- backend_
error - Convenience constructor for
Error::Backend; used internally by the D-Bus helpers.