Struct systemd-dbus::Connection
[-]
[+]
[src]
pub struct Connection<'a> { // some fields omitted }
Main type representing a connection to systemd via Dbus.
use system-dbus::Connection; let conn=Connection::new(); println!("{:?}", conn.list_units());
Methods
impl<'a> Connection<'a>
fn new() -> Result<Connection<'a>, SystemdError>
Create a new connection to systemd
fn add_match(&self, rule_string: &str) -> Result<(), SystemdError>
Add a match rule for signals
fn systemd_signals(&self) -> Result<(), SystemdError>
Start subscription to systemd signals