pub enum ScriptError {
Spawn {
path: PathBuf,
detail: String,
},
Serialize(String),
Wait(String),
Timeout(Duration),
OutputTooLarge {
limit: usize,
stream: &'static str,
},
}Expand description
Why a script produced no verdict at all — as opposed to producing one this
caller did not like, which is ScriptOutcome’s business.
Variants§
Spawn
Serialize(String)
Wait(String)
Timeout(Duration)
OutputTooLarge
The script wrote more than [MAX_SCRIPT_OUTPUT_BYTES] to one stream.
An error rather than a silent truncation, and the signer hook is why:
a PEM chain cut off in the middle would arrive as an unparsable
certificate, and the operator would go looking at their CA instead of at
the script. A named refusal says which it was.
Trait Implementations§
Source§impl Debug for ScriptError
impl Debug for ScriptError
Source§impl Display for ScriptError
impl Display for ScriptError
Source§impl Error for ScriptError
impl Error for ScriptError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ScriptError
impl RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl UnsafeUnpin for ScriptError
impl UnwindSafe for ScriptError
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