pub struct NoHooks;Expand description
No hooks: nothing runs, nothing is refused.
Trait Implementations§
Source§impl Hooks for NoHooks
impl Hooks for NoHooks
fn has_hooks_for(&self, _: HookEvent) -> bool
Source§fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
__arg1: HookEvent,
_: &'life1 HookInput,
_: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = HookVerdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
__arg1: HookEvent,
_: &'life1 HookInput,
_: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = HookVerdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Run
event’s hooks on input; once stop is cancelled those still
running are stopped.Source§fn start_watching(
&self,
_paths: &[PathBuf],
_ambient: HookAmbient,
) -> Result<(), String>
fn start_watching( &self, _paths: &[PathBuf], _ambient: HookAmbient, ) -> Result<(), String>
Start the
FileChanged watcher on paths, payloads from ambient.
Called by the root session only.Source§fn watch_files(&self, _paths: &[PathBuf]) -> Result<(), String>
fn watch_files(&self, _paths: &[PathBuf]) -> Result<(), String>
Add
paths to a watcher already started; nothing when none was.Source§fn check_rewakes<'life0, 'life1, 'async_trait>(
&'life0 self,
_stop: &'life1 CancellationToken,
_ambient: HookInput,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_rewakes<'life0, 'life1, 'async_trait>(
&'life0 self,
_stop: &'life1 CancellationToken,
_ambient: HookInput,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Re-run the hooks waiting to be woken once their wake signal came, on
payloads from
ambient.Auto Trait Implementations§
impl Forget for NoHooks
impl Freeze for NoHooks
impl Move for NoHooks
impl RefUnwindSafe for NoHooks
impl Send for NoHooks
impl Sync for NoHooks
impl Unpin for NoHooks
impl UnsafeUnpin for NoHooks
impl UnwindSafe for NoHooks
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