pub struct SystemdUnitConfig {
pub unit_name: String,
pub exec_start: String,
pub working_directory: String,
pub description: Option<String>,
pub restart: SystemdRestartPolicy,
}Expand description
Parameters for the application’s systemd service unit.
Fields§
§unit_name: StringUnit name without the .service suffix (e.g. consortium-app).
exec_start: StringExecStart= command (typically {deploy_root}/app/<binary>).
working_directory: StringWorkingDirectory= (typically {deploy_root}/app).
description: Option<String>Human-readable Description=; a default is used when absent.
restart: SystemdRestartPolicyRestart policy.
Implementations§
Trait Implementations§
Source§impl Clone for SystemdUnitConfig
impl Clone for SystemdUnitConfig
Source§impl Debug for SystemdUnitConfig
impl Debug for SystemdUnitConfig
Auto Trait Implementations§
impl Freeze for SystemdUnitConfig
impl RefUnwindSafe for SystemdUnitConfig
impl Send for SystemdUnitConfig
impl Sync for SystemdUnitConfig
impl Unpin for SystemdUnitConfig
impl UnsafeUnpin for SystemdUnitConfig
impl UnwindSafe for SystemdUnitConfig
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