pub enum BootDecision {
Proceed,
RolledBack {
from: String,
},
}Expand description
What [check_on_boot] decided. On RolledBack the caller MUST
exit (non-zero) so the service manager relaunches the restored
last-good binary.
Variants§
Proceed
No pending swap, or the swap is still within its attempt budget — continue booting normally.
RolledBack
The swapped-in binary crash-looped; .last-good has been
restored over the live exe. Exit now and let the SCM relaunch.
Trait Implementations§
Source§impl Debug for BootDecision
impl Debug for BootDecision
impl Eq for BootDecision
Source§impl PartialEq for BootDecision
impl PartialEq for BootDecision
Source§fn eq(&self, other: &BootDecision) -> bool
fn eq(&self, other: &BootDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BootDecision
Auto Trait Implementations§
impl Freeze for BootDecision
impl RefUnwindSafe for BootDecision
impl Send for BootDecision
impl Sync for BootDecision
impl Unpin for BootDecision
impl UnsafeUnpin for BootDecision
impl UnwindSafe for BootDecision
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.