pub struct Hooks {
pub prestart: Vec<Hook>,
pub create_runtime: Vec<Hook>,
pub create_container: Vec<Hook>,
pub start_container: Vec<Hook>,
pub poststart: Vec<Hook>,
pub poststop: Vec<Hook>,
}Expand description
Container lifecycle hooks.
Hooks are executed at specific points during the container lifecycle:
create_runtime: After create operation, beforepivot_rootcreate_container: Afterpivot_root, before user process startsstart_container: Before user process executespoststart: After user process startspoststop: After container process exits
Fields§
§prestart: Vec<Hook>👎Deprecated:
Use createRuntime instead
Hooks run after create operation (DEPRECATED).
create_runtime: Vec<Hook>Hooks run during create operation, after environment setup.
create_container: Vec<Hook>Hooks run after pivot_root but before user process.
start_container: Vec<Hook>Hooks run before user process executes.
poststart: Vec<Hook>Hooks run after user process starts.
poststop: Vec<Hook>Hooks run after container process exits.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hooks
impl<'de> Deserialize<'de> for Hooks
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 Hooks
impl RefUnwindSafe for Hooks
impl Send for Hooks
impl Sync for Hooks
impl Unpin for Hooks
impl UnsafeUnpin for Hooks
impl UnwindSafe for Hooks
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