pub struct HookExecutor { /* private fields */ }Expand description
フック実行マネージャー
Implementations§
Source§impl HookExecutor
impl HookExecutor
Sourcepub fn set_dry_run(&mut self, dry_run: bool)
pub fn set_dry_run(&mut self, dry_run: bool)
ドライランモードを設定
Sourcepub fn set_timeout(&mut self, seconds: u64)
pub fn set_timeout(&mut self, seconds: u64)
タイムアウトを設定
Sourcepub fn set_continue_on_error(&mut self, continue_on_error: bool)
pub fn set_continue_on_error(&mut self, continue_on_error: bool)
エラー時の継続設定
Sourcepub fn execute(
&self,
hook_type: HookType,
hook: &HookCommand,
context: &HookContext,
) -> TwinResult<HookResult>
pub fn execute( &self, hook_type: HookType, hook: &HookCommand, context: &HookContext, ) -> TwinResult<HookResult>
フックを実行
Sourcepub fn execute_hooks(
&self,
hook_type: HookType,
hooks: &[HookCommand],
context: &HookContext,
) -> TwinResult<Vec<HookResult>>
pub fn execute_hooks( &self, hook_type: HookType, hooks: &[HookCommand], context: &HookContext, ) -> TwinResult<Vec<HookResult>>
複数のフックを順次実行
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookExecutor
impl RefUnwindSafe for HookExecutor
impl Send for HookExecutor
impl Sync for HookExecutor
impl Unpin for HookExecutor
impl UnsafeUnpin for HookExecutor
impl UnwindSafe for HookExecutor
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