pub struct NoHooks;Expand description
Hooks that do nothing.
Trait Implementations§
impl Copy for NoHooks
Source§impl ForgeHooks for NoHooks
impl ForgeHooks for NoHooks
Source§fn before_create(&self, _spec: &RepoSpec) -> HookDecision<RepoSpec>
fn before_create(&self, _spec: &RepoSpec) -> HookDecision<RepoSpec>
Before a repository is created.
Modify replaces the spec.Source§fn after_create(&self, _state: &RepoState) -> HookDecision<Vec<BootstrapStep>>
fn after_create(&self, _state: &RepoState) -> HookDecision<Vec<BootstrapStep>>
After a repository is created.
Modify adds steps for the core to
run before the bootstrap plan (Forgejo sets fast-forward-only merges
here).Source§fn before_apply_roles(
&self,
_repo: &Resource,
_desired: &[RoleAssignment],
) -> HookDecision<Vec<RoleAssignment>>
fn before_apply_roles( &self, _repo: &Resource, _desired: &[RoleAssignment], ) -> HookDecision<Vec<RoleAssignment>>
Before roles are converged.
Modify replaces the desired set.Source§fn after_bootstrap(
&self,
_repo: &Resource,
_outcomes: &[(String, StepOutcome)],
) -> HookDecision<Vec<BootstrapStep>>
fn after_bootstrap( &self, _repo: &Resource, _outcomes: &[(String, StepOutcome)], ) -> HookDecision<Vec<BootstrapStep>>
After a bootstrap plan ran.
Modify adds follow-up steps.Source§fn on_event(&self, _event: &ForgeEvent) -> HookDecision<ForgeEvent>
fn on_event(&self, _event: &ForgeEvent) -> HookDecision<ForgeEvent>
On a verified event.
Modify replaces it; Abort drops it.Auto Trait Implementations§
impl Freeze 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