pub struct BuiltApp { /* private fields */ }Expand description
The frozen, immutable runtime form. Cheap to share across connections.
Implementations§
Source§impl BuiltApp
impl BuiltApp
Sourcepub fn task_context(&self) -> TaskContext
pub fn task_context(&self) -> TaskContext
A TaskContext for resolving dependencies
OUTSIDE an HTTP request — background jobs, startup wiring, CLI commands.
Only app-level dependencies (those registered with App::provide /
App::provide_dep) are resolvable; module-scoped providers are not in
scope here. Any factory that pulls an HTTP extractor (Json/Path/
Query/Headers) fails with JC1003 — it needs a real request.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BuiltApp
impl !UnwindSafe for BuiltApp
impl Freeze for BuiltApp
impl Send for BuiltApp
impl Sync for BuiltApp
impl Unpin for BuiltApp
impl UnsafeUnpin for BuiltApp
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