#[non_exhaustive]pub enum InstallGoal {
Install,
Refresh,
Verify,
}Expand description
What a registration run must accomplish on Codex’s side.
The distinction exists because an “already installed” answer is only trustworthy when the caller knows the current bytes are what Codex cached. Which of these applies is the consumer’s bookkeeping; what each one makes the CLI do is this module’s.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Install
Nothing is known to have been delivered. An existing install is of unknown provenance — a copy from someone’s source checkout, or an older release — so “already installed” cannot be believed and the cached copy is forced fresh.
Refresh
A different set of bytes was delivered before. Codex’s cached copy is known stale and must be re-copied.
Verify
These exact bytes were delivered and confirmed. “Already installed” is trustworthy and nothing is forced.
Trait Implementations§
Source§impl Clone for InstallGoal
impl Clone for InstallGoal
Source§fn clone(&self) -> InstallGoal
fn clone(&self) -> InstallGoal
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 InstallGoal
Source§impl Debug for InstallGoal
impl Debug for InstallGoal
impl Eq for InstallGoal
Source§impl PartialEq for InstallGoal
impl PartialEq for InstallGoal
impl StructuralPartialEq for InstallGoal
Auto Trait Implementations§
impl Freeze for InstallGoal
impl RefUnwindSafe for InstallGoal
impl Send for InstallGoal
impl Sync for InstallGoal
impl Unpin for InstallGoal
impl UnsafeUnpin for InstallGoal
impl UnwindSafe for InstallGoal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.