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