pub struct ScriptOutcome {
pub output: Output,
pub stdin_error: Option<String>,
}Expand description
What a script answered, plus whether it ever read the question.
Fields§
§output: Output§stdin_error: Option<String>Set when writing the JSON payload to the child’s stdin failed — in
practice EPIPE, a script that exited without reading it.
Deliberately not an error on its own. A script whose payload is
{"hook":"crl"} and which exits 0 without reading stdin is behaving
perfectly reasonably, and turning that into a failure would break
working deployments. It only matters when the script also failed, and
then it matters a great deal: for the signer’s issue hook, “the script
never saw the CSR” reads nothing like “the script rejected the CSR”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScriptOutcome
impl RefUnwindSafe for ScriptOutcome
impl Send for ScriptOutcome
impl Sync for ScriptOutcome
impl Unpin for ScriptOutcome
impl UnsafeUnpin for ScriptOutcome
impl UnwindSafe for ScriptOutcome
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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