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 owned by this process’s IP. Simulates total data loss or a
new node joining the cluster.
Trait Implementations§
Source§impl Clone for RebootKind
impl Clone for RebootKind
Source§fn clone(&self) -> RebootKind
fn clone(&self) -> RebootKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RebootKind
impl Debug for RebootKind
Source§impl PartialEq for RebootKind
impl PartialEq for RebootKind
impl Copy for RebootKind
impl Eq for RebootKind
impl StructuralPartialEq for RebootKind
Auto Trait Implementations§
impl Freeze for RebootKind
impl RefUnwindSafe for RebootKind
impl Send for RebootKind
impl Sync for RebootKind
impl Unpin for RebootKind
impl UnsafeUnpin for RebootKind
impl UnwindSafe for RebootKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more