pub struct ActivateContext { /* private fields */ }Expand description
Context supplied while a Module initializes against prepared dependencies.
Implementations§
Source§impl ActivateContext
impl ActivateContext
Sourcepub fn instance_key(&self) -> &str
pub fn instance_key(&self) -> &str
Returns the App-local Module Instance key.
Sourcepub const fn phase(&self) -> ModuleLifecyclePhase
pub const fn phase(&self) -> ModuleLifecyclePhase
Returns the phase represented by this context.
Sourcepub fn dependencies(&self) -> &ModuleDependencies
pub fn dependencies(&self) -> &ModuleDependencies
Returns the explicit dependencies selected for this Instance.
Sourcepub fn ready_gate(&self) -> AppReadyGate
pub fn ready_gate(&self) -> AppReadyGate
Returns the closed-until-fully-active App Ready Gate.
Sourcepub fn readiness(&self) -> ReadinessContext
pub fn readiness(&self) -> ReadinessContext
Returns the readiness context a Module may pass to managed work.
Sourcepub fn tasks(&self) -> &ManagedTaskScope
pub fn tasks(&self) -> &ManagedTaskScope
Returns the generation-owned task scope.
Sourcepub fn resources(&self) -> &ManagedResourceScope
pub fn resources(&self) -> &ManagedResourceScope
Returns the generation-owned resource scope.
Sourcepub fn cancellation(&self) -> CancellationToken
pub fn cancellation(&self) -> CancellationToken
Returns the generation-owned cooperative cancellation token.
Sourcepub fn admission(&self) -> AppAdmission
pub fn admission(&self) -> AppAdmission
Returns the App admission state, which remains closed until readiness.
Trait Implementations§
Source§impl Clone for ActivateContext
impl Clone for ActivateContext
Source§fn clone(&self) -> ActivateContext
fn clone(&self) -> ActivateContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ActivateContext
impl !Send for ActivateContext
impl !Sync for ActivateContext
impl !UnwindSafe for ActivateContext
impl Freeze for ActivateContext
impl Unpin for ActivateContext
impl UnsafeUnpin for ActivateContext
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