pub enum ModuleLifecyclePhase {
Prepare,
Activate,
Ready,
Deactivate,
}Expand description
The lifecycle phase represented by a Module context.
Variants§
Prepare
The Module may validate configuration and reserve reversible resources.
Activate
The Module may initialize against already prepared dependencies.
Ready
The App Ready Gate has opened and externally triggered work may begin.
Deactivate
The Module must release work and resources owned by this generation.
Trait Implementations§
Source§impl Clone for ModuleLifecyclePhase
impl Clone for ModuleLifecyclePhase
Source§fn clone(&self) -> ModuleLifecyclePhase
fn clone(&self) -> ModuleLifecyclePhase
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 moreimpl Copy for ModuleLifecyclePhase
Source§impl Debug for ModuleLifecyclePhase
impl Debug for ModuleLifecyclePhase
impl Eq for ModuleLifecyclePhase
Source§impl PartialEq for ModuleLifecyclePhase
impl PartialEq for ModuleLifecyclePhase
impl StructuralPartialEq for ModuleLifecyclePhase
Auto Trait Implementations§
impl Freeze for ModuleLifecyclePhase
impl RefUnwindSafe for ModuleLifecyclePhase
impl Send for ModuleLifecyclePhase
impl Sync for ModuleLifecyclePhase
impl Unpin for ModuleLifecyclePhase
impl UnsafeUnpin for ModuleLifecyclePhase
impl UnwindSafe for ModuleLifecyclePhase
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