pub struct Lifecycle {
pub post_start: Option<LifecycleHandler>,
pub pre_stop: Option<LifecycleHandler>,
}Expand description
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
Fields§
§post_start: Option<LifecycleHandler>§pre_stop: Option<LifecycleHandler>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lifecycle
impl<'de> Deserialize<'de> for Lifecycle
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
Source§impl FromStr for Lifecycle
Converts Query Parameters representation (style=form, explode=false) to a Lifecycle value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for Lifecycle
Converts Query Parameters representation (style=form, explode=false) to a Lifecycle value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl ToString for Lifecycle
Converts the Lifecycle value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for Lifecycle
Converts the Lifecycle value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl<'v_a> ValidateArgs<'v_a> for Lifecycle
impl<'v_a> ValidateArgs<'v_a> for Lifecycle
impl StructuralPartialEq for Lifecycle
Auto Trait Implementations§
impl Freeze for Lifecycle
impl RefUnwindSafe for Lifecycle
impl Send for Lifecycle
impl Sync for Lifecycle
impl Unpin for Lifecycle
impl UnwindSafe for Lifecycle
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