pub struct Program {
pub kind: Kind,
pub stderr: bool,
/* private fields */
}
Expand description
A program/executable implementing the credential helper protocol.
Fields§
§kind: Kind
The kind of program, ready for launch.
stderr: bool
If true, stderr is enabled, which is the default.
Implementations§
Source§impl Program
impl Program
Initialization
Sourcepub fn from_custom_definition(input: impl Into<BString>) -> Self
pub fn from_custom_definition(input: impl Into<BString>) -> Self
Parse the given input as per the custom helper definition, supporting !<script>
, name
and /absolute/name
, the latter two
also support arguments which are ignored here.
Sourcepub fn to_command(&self, action: &Action) -> Command
pub fn to_command(&self, action: &Action) -> Command
Convert the program into the respective command, suitable to invoke action
.
Source§impl Program
impl Program
Builder
Sourcepub fn suppress_stderr(self) -> Self
pub fn suppress_stderr(self) -> Self
By default stderr
of programs is inherited and typically displayed in the terminal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
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