pub struct NixSystemdHelper;Expand description
Helpers for generating NixOS systemd service configurations.
Implementations§
Source§impl NixSystemdHelper
impl NixSystemdHelper
Sourcepub fn make_service(
description: &str,
exec_start: &str,
after: Vec<&str>,
wants: Vec<&str>,
restart: &str,
user: Option<&str>,
extra_attrs: Vec<NixAttr>,
) -> NixExpr
pub fn make_service( description: &str, exec_start: &str, after: Vec<&str>, wants: Vec<&str>, restart: &str, user: Option<&str>, extra_attrs: Vec<NixAttr>, ) -> NixExpr
Generate a systemd.services.<name> = { ... } config block.
Sourcepub fn make_timer(on_calendar: &str, description: &str) -> NixExpr
pub fn make_timer(on_calendar: &str, description: &str) -> NixExpr
Generate a systemd.timers.<name> configuration.
Auto Trait Implementations§
impl Freeze for NixSystemdHelper
impl RefUnwindSafe for NixSystemdHelper
impl Send for NixSystemdHelper
impl Sync for NixSystemdHelper
impl Unpin for NixSystemdHelper
impl UnsafeUnpin for NixSystemdHelper
impl UnwindSafe for NixSystemdHelper
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