pub enum UpdateDecision {
UpToDate,
AlreadyCurrent {
latest: String,
},
Available {
plan: UpdatePlan,
binary: Vec<u8>,
digest: String,
},
}Expand description
The self-update decision, resolved on ARTIFACT IDENTITY (varve#38).
Variants§
UpToDate
The API’s latest is not newer by version — nothing fetched.
AlreadyCurrent
The version string says newer, but the verified latest binary is byte-identical to what is on disk. A no-op — this is what breaks the mis-reported-version loop.
Available
A genuine, verified update is available: the plan, the verified binary bytes (ready to install), and the archive digest.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UpdateDecision
impl RefUnwindSafe for UpdateDecision
impl Send for UpdateDecision
impl Sync for UpdateDecision
impl Unpin for UpdateDecision
impl UnsafeUnpin for UpdateDecision
impl UnwindSafe for UpdateDecision
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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