Struct oci_spec::runtime::HookBuilder
source · pub struct HookBuilder { /* private fields */ }
Expand description
Builder for Hook
.
Implementations§
source§impl HookBuilder
impl HookBuilder
sourcepub fn path<VALUE: Into<PathBuf>>(self, value: VALUE) -> Self
pub fn path<VALUE: Into<PathBuf>>(self, value: VALUE) -> Self
Path to the binary to be executed. Following similar semantics to
IEEE Std 1003.1-2008 execv
’s path. This
specification extends the IEEE standard in that path MUST be
absolute.
sourcepub fn args<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn args<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
Arguments used for the binary, including the binary name itself.
Following the same semantics as IEEE Std 1003.1-2008
execv
’s argv.
sourcepub fn env<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn env<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
Additional key=value
environment variables. Following the same
semantics as IEEE Std 1003.1-2008’s environ
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookBuilder
impl RefUnwindSafe for HookBuilder
impl Send for HookBuilder
impl Sync for HookBuilder
impl Unpin for HookBuilder
impl UnwindSafe for HookBuilder
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