Skip to main content

PhaseMarker

Trait PhaseMarker 

Source
pub trait PhaseMarker: Sealed {
    const PHASE: LifecyclePhase;
}
Expand description

Phase markers for TypedContext. Each marker type implements PhaseMarker with a const LifecyclePhase discriminant; the PhasedContext view inspects this at runtime to gate phase-only APIs.

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl PhaseMarker for Running

Source§

const PHASE: LifecyclePhase = LifecyclePhase::Running

Source§

impl PhaseMarker for Starting

Source§

const PHASE: LifecyclePhase = LifecyclePhase::Starting

Source§

impl PhaseMarker for Stopping

Source§

const PHASE: LifecyclePhase = LifecyclePhase::Stopping