Skip to main content

BeforeApplyHook

Type Alias BeforeApplyHook 

Source
pub type BeforeApplyHook = Box<dyn Fn(&UpdatePlan) -> Pin<Box<dyn Future<Output = Result<bool, UpdateKitError>> + Send>> + Send + Sync>;
Expand description

Async hook called before applying an update. Returns Ok(true) to proceed, Ok(false) to abort.

Aliased Typeยง

pub struct BeforeApplyHook(/* private fields */);