[][src]Struct container_spec::HooksBuilder

pub struct HooksBuilder { /* fields omitted */ }

Builder for Hooks.

Methods

impl HooksBuilder[src]

pub fn prestart<VALUE: Into<Vec<Hook>>>(&mut self, value: VALUE) -> &mut Self[src]

Prestart is Deprecated. Prestart is a list of hooks to be run before the container process is executed. It is called in the Runtime Namespace

pub fn create_runtime<VALUE: Into<Vec<Hook>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

CreateRuntime is a list of hooks to be run after the container has been created but before pivot_root or any equivalent operation has been called It is called in the Runtime Namespace

pub fn create_container<VALUE: Into<Vec<Hook>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

CreateContainer is a list of hooks to be run after the container has been created but before pivot_root or any equivalent operation has been called It is called in the Container Namespace

pub fn start_container<VALUE: Into<Vec<Hook>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

StartContainer is a list of hooks to be run after the start operation is called but before the container process is started It is called in the Container Namespace

pub fn poststart<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self[src]

Poststart is a list of hooks to be run after the container process is started. It is called in the Runtime Namespace

pub fn poststop<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self[src]

Poststop is a list of hooks to be run after the container process exits. It is called in the Runtime Namespace

pub fn build(&self) -> Result<Hooks, String>[src]

Builds a new Hooks.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for HooksBuilder[src]

impl Default for HooksBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.