Skip to main content

DeclareShutdownPhase

Trait DeclareShutdownPhase 

Source
pub trait DeclareShutdownPhase<Role>: Sized {
    type Output;

    // Required method
    fn shutdown_phase(self, role: Role) -> Self::Output;
}
Expand description

Generic consumer operation for appending one statically valid shutdown phase.

Framework code can carry Output without naming the builder’s private availability proof. Implementations do not plan or store phases independently; they delegate to ChildShutdownPhases::shutdown_phase.

Required Associated Types§

Required Methods§

Source

fn shutdown_phase(self, role: Role) -> Self::Output

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<B, Available, Phases, Role> DeclareShutdownPhase<Role> for ChildShutdownPhases<B, Available, Phases>
where B: Behavior + ResolveChildOccurrence<Role>, Available: AssignAt<<B as ResolveChildOccurrence<Role>>::Position>,

Source§

type Output = ChildShutdownPhases<B, <Available as AssignAt<<B as ResolveChildOccurrence<Role>>::Position>>::Assigned, Phase<Role, Phases>>