pub struct UpdateContainerOptionsRestartPolicy {
pub name: String,
pub maximum_retry_count: isize,
}
Expand description
The behavior to apply when the container exits. The default is not to restart.
An ever increasing delay (double the previous delay, starting at 100ms) is added before each restart to prevent flooding the server.
Fields§
§name: String
§maximum_retry_count: isize
Trait Implementations§
source§impl Clone for UpdateContainerOptionsRestartPolicy
impl Clone for UpdateContainerOptionsRestartPolicy
source§fn clone(&self) -> UpdateContainerOptionsRestartPolicy
fn clone(&self) -> UpdateContainerOptionsRestartPolicy
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 Default for UpdateContainerOptionsRestartPolicy
impl Default for UpdateContainerOptionsRestartPolicy
source§fn default() -> UpdateContainerOptionsRestartPolicy
fn default() -> UpdateContainerOptionsRestartPolicy
Returns the “default value” for a type. Read more