Struct k8s_openapi::api::core::v1::LifecycleHandler
source · pub struct LifecycleHandler {
pub exec: Option<ExecAction>,
pub http_get: Option<HTTPGetAction>,
pub sleep: Option<SleepAction>,
pub tcp_socket: Option<TCPSocketAction>,
}
Expand description
LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
Fields§
§exec: Option<ExecAction>
Exec specifies the action to take.
http_get: Option<HTTPGetAction>
HTTPGet specifies the http request to perform.
sleep: Option<SleepAction>
Sleep represents the duration that the container should sleep before being terminated.
tcp_socket: Option<TCPSocketAction>
Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.
Trait Implementations§
source§impl Clone for LifecycleHandler
impl Clone for LifecycleHandler
source§fn clone(&self) -> LifecycleHandler
fn clone(&self) -> LifecycleHandler
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 Debug for LifecycleHandler
impl Debug for LifecycleHandler
source§impl DeepMerge for LifecycleHandler
impl DeepMerge for LifecycleHandler
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for LifecycleHandler
impl Default for LifecycleHandler
source§fn default() -> LifecycleHandler
fn default() -> LifecycleHandler
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LifecycleHandler
impl<'de> Deserialize<'de> for LifecycleHandler
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 PartialEq for LifecycleHandler
impl PartialEq for LifecycleHandler
source§fn eq(&self, other: &LifecycleHandler) -> bool
fn eq(&self, other: &LifecycleHandler) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LifecycleHandler
impl Serialize for LifecycleHandler
impl StructuralPartialEq for LifecycleHandler
Auto Trait Implementations§
impl Freeze for LifecycleHandler
impl RefUnwindSafe for LifecycleHandler
impl Send for LifecycleHandler
impl Sync for LifecycleHandler
impl Unpin for LifecycleHandler
impl UnwindSafe for LifecycleHandler
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