#[non_exhaustive]pub enum ExecutionPhase {
Setup,
Bootstrap,
BootstrapComplete,
Running,
GracefulUpgradeTransferringFds,
GracefulUpgradeCloseTimeout,
GracefulTerminate,
ShutdownStarted,
ShutdownGracePeriod,
ShutdownRuntimes,
Terminated,
}
Expand description
The execution phase the server is currently in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Setup
The server was created, but has not started yet.
Bootstrap
Services are being prepared.
During graceful upgrades this phase acquires the listening FDs from the old process.
BootstrapComplete
Bootstrap has finished, listening FDs have been transferred.
Running
The server is running and is listening for shutdown signals.
GracefulUpgradeTransferringFds
A QUIT signal was received, indicating that a new process wants to take over.
The server is trying to send the fds to the new process over a Unix socket.
GracefulUpgradeCloseTimeout
FDs have been sent to the new process. Waiting a fixed amount of time to allow the new process to take the sockets.
GracefulTerminate
A TERM signal was received, indicating that the server should shut down gracefully.
ShutdownStarted
The server is shutting down.
ShutdownGracePeriod
Waiting for the configured grace period to end before shutting down.
ShutdownRuntimes
Wait for runtimes to finish.
Terminated
The server has stopped.
Trait Implementations§
Source§impl Clone for ExecutionPhase
impl Clone for ExecutionPhase
Source§fn clone(&self) -> ExecutionPhase
fn clone(&self) -> ExecutionPhase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more