diff options
| author | Fuwn <[email protected]> | 2023-04-03 03:06:26 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-03 03:06:26 +0000 |
| commit | 3c030a23833a650af890491ef6e969f93c94b466 (patch) | |
| tree | 3daa321ea0eafa5df57172d587b0d67d4a70f56a /src/module.rs | |
| parent | refactor(returnable): seperate contexts (diff) | |
| download | windmark-3c030a23833a650af890491ef6e969f93c94b466.tar.xz windmark-3c030a23833a650af890491ef6e969f93c94b466.zip | |
refactor(context): callback -> hook
Diffstat (limited to 'src/module.rs')
| -rw-r--r-- | src/module.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/module.rs b/src/module.rs index 9365777..0c2a67b 100644 --- a/src/module.rs +++ b/src/module.rs @@ -16,15 +16,15 @@ // Copyright (C) 2022-2022 Fuwn <[email protected]> // SPDX-License-Identifier: GPL-3.0-only -use crate::{context::CallbackContext, Router}; +use crate::{context::HookContext, Router}; pub trait Module { /// Called right after the module is attached. fn on_attach(&mut self, _: &mut Router) {} /// Called before a route is mounted. - fn on_pre_route(&mut self, _: CallbackContext<'_>) {} + fn on_pre_route(&mut self, _: HookContext<'_>) {} /// Called after a route is mounted. - fn on_post_route(&mut self, _: CallbackContext<'_>) {} + fn on_post_route(&mut self, _: HookContext<'_>) {} } |