[−][src]Struct container_spec::HooksBuilder
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]
&mut self,
value: VALUE
) -> &mut Self
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]
&mut self,
value: VALUE
) -> &mut Self
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]
&mut self,
value: VALUE
) -> &mut Self
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]
Trait Implementations
impl Clone for HooksBuilder
[src]
fn clone(&self) -> HooksBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for HooksBuilder
[src]
fn default() -> HooksBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for HooksBuilder
impl Send for HooksBuilder
impl Sync for HooksBuilder
impl Unpin for HooksBuilder
impl UnwindSafe for HooksBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,