#[non_exhaustive]pub enum InstallOutcome {
Installed,
AlreadyInstalled,
Refreshed,
Failed {
detail: String,
},
RemovedNotReinstalled {
detail: String,
},
Skipped,
}Expand description
Outcome of installing or refreshing the plugin.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Installed
codex plugin add succeeded with nothing known to be stale.
AlreadyInstalled
The caller knew the current bytes were delivered and the CLI agrees an install exists.
Refreshed
Codex’s cached copy was re-copied from the marketplace root.
Failed
The step failed; whatever was installed before is still installed.
RemovedNotReinstalled
The forced refresh removed the untrusted install and then failed to re-add it: the plugin is currently not installed, which is the one outcome a consumer must say out loud.
Skipped
The step never ran because the marketplace step failed.
Implementations§
Source§impl InstallOutcome
impl InstallOutcome
Sourcepub fn needs_manual_retry(&self) -> bool
pub fn needs_manual_retry(&self) -> bool
Whether the consumer’s summary should print
PluginManager::manual_commands.
Sourcepub fn confirmed_delivery(&self) -> bool
pub fn confirmed_delivery(&self) -> bool
Whether this run confirmed that Codex’s cache now holds the bytes under the marketplace root — the only outcomes a consumer may record as delivered.
Trait Implementations§
Source§impl Clone for InstallOutcome
impl Clone for InstallOutcome
Source§fn clone(&self) -> InstallOutcome
fn clone(&self) -> InstallOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InstallOutcome
impl Debug for InstallOutcome
impl Eq for InstallOutcome
Source§impl PartialEq for InstallOutcome
impl PartialEq for InstallOutcome
impl StructuralPartialEq for InstallOutcome
Auto Trait Implementations§
impl Freeze for InstallOutcome
impl RefUnwindSafe for InstallOutcome
impl Send for InstallOutcome
impl Sync for InstallOutcome
impl Unpin for InstallOutcome
impl UnsafeUnpin for InstallOutcome
impl UnwindSafe for InstallOutcome
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
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
key and return true if they are equal.