Skip to main content

get_networkd_state

Function get_networkd_state 

Source
pub async fn get_networkd_state(socket_path: &str) -> Result<NetworkdState>
Expand description

Collect networkd interface stats via the io.systemd.Network varlink Describe method.

Runs on a blocking thread with a dedicated runtime because the zlink connection is !Send and cannot be held across await points in a Send future.