pub enum RebootKind {
Graceful,
Crash,
CrashAndWipe,
}Expand description
The type of reboot to perform on a process.
Variants§
Graceful
Signal shutdown token, wait grace period, drain send buffers, then restart.
The process’s ctx.shutdown() token fires. The process has a grace period
to finish up. If it doesn’t exit in time, the task is force-cancelled.
Send buffers drain during the grace period (FIN delivery).
Crash
Instant kill: task cancelled, all connections abort immediately.
No buffer drain. Peers see connection reset errors. Unsynced storage data may be lost (when per-IP storage scoping is implemented).
CrashAndWipe
Instant kill + wipe all storage for this process.
Same as Crash but also deletes all persistent
storage. Simulates total data loss or a new node joining the cluster.
Note: Storage wipe is deferred to future work (storage not yet scoped
per IP). Currently behaves the same as Crash.
Trait Implementations§
Source§impl Clone for RebootKind
impl Clone for RebootKind
Source§fn clone(&self) -> RebootKind
fn clone(&self) -> RebootKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more