pub struct LocalExecutor;Expand description
本地脚本执行器
Implementations§
Source§impl LocalExecutor
impl LocalExecutor
Sourcepub async fn execute_script_with_realtime_output(
script: Option<String>,
global_scripts: Vec<String>,
step: &Step,
pipeline_name: &str,
_step_name: &str,
output_callback: Option<OutputCallback>,
variables: HashMap<String, String>,
) -> Result<ExecutionResult>
pub async fn execute_script_with_realtime_output( script: Option<String>, global_scripts: Vec<String>, step: &Step, pipeline_name: &str, _step_name: &str, output_callback: Option<OutputCallback>, variables: HashMap<String, String>, ) -> Result<ExecutionResult>
在本地执行shell脚本(支持实时输出)
Sourcepub fn execute_script(step: &Step) -> Result<ExecutionResult>
pub fn execute_script(step: &Step) -> Result<ExecutionResult>
在本地执行shell脚本(同步版本,用于兼容性)
Auto Trait Implementations§
impl Freeze for LocalExecutor
impl RefUnwindSafe for LocalExecutor
impl Send for LocalExecutor
impl Sync for LocalExecutor
impl Unpin for LocalExecutor
impl UnsafeUnpin for LocalExecutor
impl UnwindSafe for LocalExecutor
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