pub enum ScriptEntry {
Simple(String),
Full {
run: String,
timeout: Option<String>,
idle_timeout: Option<String>,
continue_on_error: Option<bool>,
shell: ScriptShell,
},
}Variants§
Simple(String)
Full
Fields
§
idle_timeout: Option<String>Kill the script if it produces no stdout/stderr output for this duration. Prevents scripts from silently hanging on unresponsive resources. Format: “30s”, “2m”, etc. If unset, no idle timeout is enforced.
§
shell: ScriptShellInterpreter to use for inline commands. Ignored (and rejected) on file scripts.
Implementations§
Trait Implementations§
Source§impl Clone for ScriptEntry
impl Clone for ScriptEntry
Source§fn clone(&self) -> ScriptEntry
fn clone(&self) -> ScriptEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptEntry
impl Debug for ScriptEntry
Source§impl<'de> Deserialize<'de> for ScriptEntry
impl<'de> Deserialize<'de> for ScriptEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ScriptEntry
impl Display for ScriptEntry
Source§impl PartialEq for ScriptEntry
impl PartialEq for ScriptEntry
Source§fn eq(&self, other: &ScriptEntry) -> bool
fn eq(&self, other: &ScriptEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScriptEntry
impl Serialize for ScriptEntry
impl StructuralPartialEq for ScriptEntry
Auto Trait Implementations§
impl Freeze for ScriptEntry
impl RefUnwindSafe for ScriptEntry
impl Send for ScriptEntry
impl Sync for ScriptEntry
impl Unpin for ScriptEntry
impl UnsafeUnpin for ScriptEntry
impl UnwindSafe for ScriptEntry
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