pub struct ShellCommandHook {
pub config: HookConfig,
pub cwd: PathBuf,
}Expand description
Shell command hook implementation
Fields§
§config: HookConfig§cwd: PathBufTrait Implementations§
Source§impl PostToolsHook for ShellCommandHook
impl PostToolsHook for ShellCommandHook
fn name(&self) -> &str
fn timeout(&self) -> Duration
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
tool_names_called: &'life1 [String],
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = PostToolsHookResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for ShellCommandHook
impl RefUnwindSafe for ShellCommandHook
impl Send for ShellCommandHook
impl Sync for ShellCommandHook
impl Unpin for ShellCommandHook
impl UnsafeUnpin for ShellCommandHook
impl UnwindSafe for ShellCommandHook
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