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§
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.