pub async fn run_before_tasks() -> Result<(), Error>
按优先级升序执行所有已注册的 before 钩子(应用启动前调用)。 任一任务返回错误时立即停止并向上传播。
before