pub enum PluginOutcome {
Success,
CliNotFound,
Failed {
exit_code: Option<i32>,
stderr: String,
},
}Expand description
Outcome of a plugin install or uninstall attempt.
Variants§
Success
Command executed successfully (exit code 0).
CliNotFound
Client CLI not found on PATH — plugin skipped.
Failed
Client CLI found but command returned non-zero.
Implementations§
Source§impl PluginOutcome
impl PluginOutcome
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
True when the plugin was successfully installed/uninstalled.
Sourcepub fn is_cli_not_found(&self) -> bool
pub fn is_cli_not_found(&self) -> bool
True when the CLI was not found (warn-skip scenario).
Trait Implementations§
Source§impl Clone for PluginOutcome
impl Clone for PluginOutcome
Source§fn clone(&self) -> PluginOutcome
fn clone(&self) -> PluginOutcome
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 moreSource§impl Debug for PluginOutcome
impl Debug for PluginOutcome
Source§impl PartialEq for PluginOutcome
impl PartialEq for PluginOutcome
Source§fn eq(&self, other: &PluginOutcome) -> bool
fn eq(&self, other: &PluginOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PluginOutcome
impl StructuralPartialEq for PluginOutcome
Auto Trait Implementations§
impl Freeze for PluginOutcome
impl RefUnwindSafe for PluginOutcome
impl Send for PluginOutcome
impl Sync for PluginOutcome
impl Unpin for PluginOutcome
impl UnsafeUnpin for PluginOutcome
impl UnwindSafe for PluginOutcome
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.