pub struct SystemdProvider { /* private fields */ }Expand description
Provider for systemd units, covering either the user or system scope.
Implementations§
Trait Implementations§
Source§impl AutostartProvider for SystemdProvider
impl AutostartProvider for SystemdProvider
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Stable provider id, e.g.
"xdg-autostart". Used as the source on entries
and as the left side of a source:id address.Source§fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Real runtime detection: returns
false when the underlying subsystem,
paths, or bus aren’t present. Providers that report false are silently
skipped by the registry. Must never panic.Source§fn entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<AutostartEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<AutostartEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Enumerate the provider’s autostart entries, each tagged with this
provider’s id as
source.Source§fn enable<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn enable<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Enable the entry with the given id.
Source§fn disable<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn disable<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Disable the entry with the given id (without destroying it where possible).
Auto Trait Implementations§
impl Freeze for SystemdProvider
impl RefUnwindSafe for SystemdProvider
impl Send for SystemdProvider
impl Sync for SystemdProvider
impl Unpin for SystemdProvider
impl UnsafeUnpin for SystemdProvider
impl UnwindSafe for SystemdProvider
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