Struct podman_api::opts::SystemdUnitsOptsBuilder
source · pub struct SystemdUnitsOptsBuilder { /* private fields */ }Expand description
A builder struct for SystemdUnitsOpts.
Implementations§
source§impl SystemdUnitsOptsBuilder
impl SystemdUnitsOptsBuilder
sourcepub fn build(self) -> SystemdUnitsOpts
pub fn build(self) -> SystemdUnitsOpts
Finish building SystemdUnitsOpts.
source§impl SystemdUnitsOptsBuilder
impl SystemdUnitsOptsBuilder
sourcepub fn additional_env_variables<S>(
self,
additional_env_variables: impl IntoIterator<Item = S>
) -> Selfwhere
S: Into<String>,
pub fn additional_env_variables<S>(
self,
additional_env_variables: impl IntoIterator<Item = S>
) -> Selfwhere
S: Into<String>,
Set environment variables to the systemd unit files.
sourcepub fn after<S>(self, after: impl IntoIterator<Item = S>) -> Selfwhere
S: Into<String>,
pub fn after<S>(self, after: impl IntoIterator<Item = S>) -> Selfwhere
S: Into<String>,
Systemd After list for the container or pods.
sourcepub fn container_prefix(self, container_prefix: impl Into<String>) -> Self
pub fn container_prefix(self, container_prefix: impl Into<String>) -> Self
Systemd unit name prefix for containers.
sourcepub fn new(self, new: bool) -> Self
pub fn new(self, new: bool) -> Self
Create a new container instead of starting an existing one.
sourcepub fn no_header(self, no_header: bool) -> Self
pub fn no_header(self, no_header: bool) -> Self
Do not generate the header including the Podman version and the timestamp.
sourcepub fn pod_prefix(self, pod_prefix: impl Into<String>) -> Self
pub fn pod_prefix(self, pod_prefix: impl Into<String>) -> Self
Systemd unit name prefix for pods.
sourcepub fn requires<S>(self, requires: impl IntoIterator<Item = S>) -> Selfwhere
S: Into<String>,
pub fn requires<S>(self, requires: impl IntoIterator<Item = S>) -> Selfwhere
S: Into<String>,
Systemd Requires list for the container or pods.
sourcepub fn restart_policy(self, restart_policy: SystemdRestartPolicy) -> Self
pub fn restart_policy(self, restart_policy: SystemdRestartPolicy) -> Self
Systemd restart-policy.
sourcepub fn restart_sec(self, restart_sec: usize) -> Self
pub fn restart_sec(self, restart_sec: usize) -> Self
Configures the time to sleep before restarting a service.
sourcepub fn separator(self, separator: impl Into<String>) -> Self
pub fn separator(self, separator: impl Into<String>) -> Self
Systemd unit name separator between name/id and prefix.
sourcepub fn start_timeout(self, start_timeout: usize) -> Self
pub fn start_timeout(self, start_timeout: usize) -> Self
Start timeout in seconds.
sourcepub fn stop_timeout(self, stop_timeout: usize) -> Self
pub fn stop_timeout(self, stop_timeout: usize) -> Self
Stop timeout in seconds.
sourcepub fn wants<S>(self, wants: impl IntoIterator<Item = S>) -> Selfwhere
S: Into<String>,
pub fn wants<S>(self, wants: impl IntoIterator<Item = S>) -> Selfwhere
S: Into<String>,
Systemd Wants list for the container or pods.
Trait Implementations§
source§impl Clone for SystemdUnitsOptsBuilder
impl Clone for SystemdUnitsOptsBuilder
source§fn clone(&self) -> SystemdUnitsOptsBuilder
fn clone(&self) -> SystemdUnitsOptsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SystemdUnitsOptsBuilder
impl Debug for SystemdUnitsOptsBuilder
source§impl Default for SystemdUnitsOptsBuilder
impl Default for SystemdUnitsOptsBuilder
source§fn default() -> SystemdUnitsOptsBuilder
fn default() -> SystemdUnitsOptsBuilder
Returns the “default value” for a type. Read more