Struct podman_api::opts::SystemdUnitsOptsBuilder
source · [−]pub struct SystemdUnitsOptsBuilder { /* private fields */ }
Expand description
A builder struct for SystemdUnitsOpts.
Implementations
sourceimpl SystemdUnitsOptsBuilder
impl SystemdUnitsOptsBuilder
sourcepub fn build(self) -> SystemdUnitsOpts
pub fn build(self) -> SystemdUnitsOpts
Finish building SystemdUnitsOpts.
sourceimpl SystemdUnitsOptsBuilder
impl SystemdUnitsOptsBuilder
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 restart_policy(self, restart_policy: RestartPolicy) -> Self
pub fn restart_policy(self, restart_policy: RestartPolicy) -> 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.
Trait Implementations
sourceimpl Clone for SystemdUnitsOptsBuilder
impl Clone for SystemdUnitsOptsBuilder
sourcefn clone(&self) -> SystemdUnitsOptsBuilder
fn clone(&self) -> SystemdUnitsOptsBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SystemdUnitsOptsBuilder
impl Debug for SystemdUnitsOptsBuilder
sourceimpl Default for SystemdUnitsOptsBuilder
impl Default for SystemdUnitsOptsBuilder
sourcefn default() -> SystemdUnitsOptsBuilder
fn default() -> SystemdUnitsOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SystemdUnitsOptsBuilder
impl Send for SystemdUnitsOptsBuilder
impl Sync for SystemdUnitsOptsBuilder
impl Unpin for SystemdUnitsOptsBuilder
impl UnwindSafe for SystemdUnitsOptsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more