pub enum ScriptBlock {
Command(ScriptCommand),
InternalCommand(ScriptLocation, InternalCommand),
Background(Vec<ScriptBlock>),
Defer(Vec<ScriptBlock>),
If(IfCondition, Vec<ScriptBlock>),
For(ForCondition, Vec<ScriptBlock>),
Retry(Vec<ScriptBlock>),
GlobalIgnore(OutputPatterns),
GlobalReject(OutputPatterns),
}Variants§
Command(ScriptCommand)
InternalCommand(ScriptLocation, InternalCommand)
Background(Vec<ScriptBlock>)
Defer(Vec<ScriptBlock>)
If(IfCondition, Vec<ScriptBlock>)
For(ForCondition, Vec<ScriptBlock>)
Retry(Vec<ScriptBlock>)
GlobalIgnore(OutputPatterns)
GlobalReject(OutputPatterns)
Implementations§
Source§impl ScriptBlock
impl ScriptBlock
pub fn includes(&self) -> Vec<(ScriptLocation, String)>
pub fn run_blocks( context: &mut ScriptRunContext, blocks: &[ScriptBlock], ) -> Result<Vec<ScriptResult>, ScriptRunError>
pub fn run( &self, context: &mut ScriptRunContext, ) -> Result<Vec<ScriptResult>, ScriptRunError>
Trait Implementations§
Source§impl Debug for ScriptBlock
impl Debug for ScriptBlock
Auto Trait Implementations§
impl Freeze for ScriptBlock
impl RefUnwindSafe for ScriptBlock
impl Send for ScriptBlock
impl Sync for ScriptBlock
impl Unpin for ScriptBlock
impl UnwindSafe for ScriptBlock
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