pub struct ServiceTaskSpecRestartPolicy {
pub condition: Box<Option<String>>,
pub delay: Box<Option<String>>,
pub max_attempts: Box<Option<i32>>,
pub window: Box<Option<String>>,
}
Fields§
§condition: Box<Option<String>>
Condition for restart
delay: Box<Option<String>>
Delay between restart attempts (ms|s|m|h)
max_attempts: Box<Option<i32>>
Maximum attempts to restart a given container before giving up (default value is 0
, which is ignored)
window: Box<Option<String>>
The time window used to evaluate the restart policy (default value is 0
, which is unbounded) (ms|s|m|h)
Implementations§
source§impl ServiceTaskSpecRestartPolicy
impl ServiceTaskSpecRestartPolicy
sourcepub fn builder() -> ServiceTaskSpecRestartPolicyBuilder
pub fn builder() -> ServiceTaskSpecRestartPolicyBuilder
Create an instance of ServiceTaskSpecRestartPolicy
using the builder syntax
Trait Implementations§
source§impl Debug for ServiceTaskSpecRestartPolicy
impl Debug for ServiceTaskSpecRestartPolicy
source§impl<'de> Deserialize<'de> for ServiceTaskSpecRestartPolicy
impl<'de> Deserialize<'de> for ServiceTaskSpecRestartPolicy
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServiceTaskSpecRestartPolicy
impl RefUnwindSafe for ServiceTaskSpecRestartPolicy
impl Send for ServiceTaskSpecRestartPolicy
impl Sync for ServiceTaskSpecRestartPolicy
impl Unpin for ServiceTaskSpecRestartPolicy
impl UnwindSafe for ServiceTaskSpecRestartPolicy
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