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: LifecycleHandler)
 
fn merge_from(&mut self, other: LifecycleHandler)
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<LifecycleHandler, <D as Deserializer<'de>>::Error>where
    D: Deserializer<'de>,
 
fn deserialize<D>(
    deserializer: D,
) -> Result<LifecycleHandler, <D as Deserializer<'de>>::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§impl Serialize for LifecycleHandler
 
impl Serialize for LifecycleHandler
source§fn serialize<S>(
    &self,
    serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
    S: Serializer,
 
fn serialize<S>(
    &self,
    serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
    S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)