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.