pub enum RestartState {
None,
Scheduled {
execute_at_ms: u64,
},
Stopping,
Starting,
Backoff,
Failed,
}Expand description
Lifecycle state of one scheduled restart.
Variants§
None
No restart is pending.
Scheduled
A restart is waiting for its execution time.
Stopping
A worker is stopping the previous instance.
Starting
A worker is starting the replacement instance.
Backoff
A retry is waiting for policy backoff.
Failed
The most recent restart action failed.
Trait Implementations§
Source§impl Clone for RestartState
impl Clone for RestartState
Source§fn clone(&self) -> RestartState
fn clone(&self) -> RestartState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RestartState
Source§impl Debug for RestartState
impl Debug for RestartState
impl Eq for RestartState
Source§impl PartialEq for RestartState
impl PartialEq for RestartState
impl StructuralPartialEq for RestartState
Auto Trait Implementations§
impl Freeze for RestartState
impl RefUnwindSafe for RestartState
impl Send for RestartState
impl Sync for RestartState
impl Unpin for RestartState
impl UnsafeUnpin for RestartState
impl UnwindSafe for RestartState
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