pub struct ScriptCommand {
pub command: CommandLine,
pub pattern: OutputPattern,
pub exit: CommandExit,
pub expect_failure: bool,
pub set_var: Option<String>,
pub timeout: Option<Duration>,
}Fields§
§command: CommandLine§pattern: OutputPattern§exit: CommandExit§expect_failure: bool§set_var: Option<String>§timeout: Option<Duration>Implementations§
Source§impl ScriptCommand
impl ScriptCommand
pub fn run( &self, context: &mut ScriptRunContext, ) -> Result<ScriptResult, ScriptRunError>
Trait Implementations§
Source§impl Debug for ScriptCommand
impl Debug for ScriptCommand
Auto Trait Implementations§
impl Freeze for ScriptCommand
impl RefUnwindSafe for ScriptCommand
impl Send for ScriptCommand
impl Sync for ScriptCommand
impl Unpin for ScriptCommand
impl UnwindSafe for ScriptCommand
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