pub struct Hooks {
pub before_check: Option<BeforeCheckHook>,
pub before_apply: Option<BeforeApplyHook>,
pub after_apply: Option<AfterApplyHook>,
pub on_error: Option<OnErrorHook>,
}Expand description
Lifecycle hooks for the update pipeline.
Fields§
§before_check: Option<BeforeCheckHook>Called before checking for updates.
before_apply: Option<BeforeApplyHook>Called before applying an update. Return false to abort.
after_apply: Option<AfterApplyHook>Called after applying an update.
on_error: Option<OnErrorHook>Called on any error during the pipeline.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hooks
impl !RefUnwindSafe for Hooks
impl Send for Hooks
impl Sync for Hooks
impl Unpin for Hooks
impl UnsafeUnpin for Hooks
impl !UnwindSafe for Hooks
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