pub struct ShellHook {
pub command: String,
pub hook_events: Vec<HookEvent>,
pub blocking: bool,
/* private fields */
}Expand description
A hook that runs a shell command from settings.json configuration.
Fields§
§command: String§hook_events: Vec<HookEvent>§blocking: boolImplementations§
Trait Implementations§
Source§impl Hook for ShellHook
impl Hook for ShellHook
Source§fn on_event<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 HookContext,
) -> Pin<Box<dyn Future<Output = HookAction> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_event<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 HookContext,
) -> Pin<Box<dyn Future<Output = HookAction> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when a matching event fires. Returns an action to control flow.
Auto Trait Implementations§
impl Freeze for ShellHook
impl RefUnwindSafe for ShellHook
impl Send for ShellHook
impl Sync for ShellHook
impl Unpin for ShellHook
impl UnsafeUnpin for ShellHook
impl UnwindSafe for ShellHook
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