[−][src]Struct bollard::service::RestartPolicy
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: Option<RestartPolicyNameEnum>
- Empty string means not to restart -
always
Always restart -unless-stopped
Restart always except when the user has manually stopped the container -on-failure
Restart only when the container exit code is non-zero
maximum_retry_count: Option<i64>
If on-failure
is used, the number of times to retry before giving up
Trait Implementations
impl Clone for RestartPolicy
[src]
fn clone(&self) -> RestartPolicy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RestartPolicy
[src]
impl Default for RestartPolicy
[src]
fn default() -> RestartPolicy
[src]
impl<'de> Deserialize<'de> for RestartPolicy
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<RestartPolicy, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<RestartPolicy, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl PartialEq<RestartPolicy> for RestartPolicy
[src]
fn eq(&self, other: &RestartPolicy) -> bool
[src]
fn ne(&self, other: &RestartPolicy) -> bool
[src]
impl Serialize for RestartPolicy
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralPartialEq for RestartPolicy
[src]
Auto Trait Implementations
impl RefUnwindSafe for RestartPolicy
impl Send for RestartPolicy
impl Sync for RestartPolicy
impl Unpin for RestartPolicy
impl UnwindSafe for RestartPolicy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,