pub struct Manager { /* private fields */ }Expand description
systemd Manager APIs.
Implementations§
Source§impl Manager
impl Manager
Sourcepub async fn list_units(&self) -> Result<Vec<UnitListEntry>>
pub async fn list_units(&self) -> Result<Vec<UnitListEntry>>
List all units currently known to systemd.
Sourcepub async fn list_units_filtered(
&self,
states: &[&str],
) -> Result<Vec<UnitListEntry>>
pub async fn list_units_filtered( &self, states: &[&str], ) -> Result<Vec<UnitListEntry>>
List units filtered by one or more states (e.g. "active", "failed", "loaded").
This uses Manager.ListUnitsFiltered when available, and falls back to ListUnits with
in-process filtering on older systemd versions.
Sourcepub async fn properties(&self) -> Result<Properties>
pub async fn properties(&self) -> Result<Properties>
Fetch a snapshot of manager/global properties.
Sourcepub async fn info(&self) -> Result<ManagerInfo>
pub async fn info(&self) -> Result<ManagerInfo>
Fetch common manager/global information.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manager
impl !RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl !UnwindSafe for Manager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more