pub enum InstallDisposition {
FailIfInstalled,
Upgrade,
}Expand description
How PluginInstaller::install must treat a plugin id that is ALREADY
installed. Maps directly to the CLI verbs: bamboo plugin install uses
Self::FailIfInstalled, bamboo plugin update (or install --force)
uses Self::Upgrade.
Variants§
FailIfInstalled
Refuse a re-install of an already-installed id with
PluginError::AlreadyInstalled. A first-time install should not
silently replace an existing plugin.
Upgrade
Upgrade in place: de-register the capabilities the new version dropped
(via crate::registry::RegisteredCapabilities::removed_since),
register the new set, then upsert provenance.
Trait Implementations§
Source§impl Clone for InstallDisposition
impl Clone for InstallDisposition
Source§fn clone(&self) -> InstallDisposition
fn clone(&self) -> InstallDisposition
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 InstallDisposition
Source§impl Debug for InstallDisposition
impl Debug for InstallDisposition
impl Eq for InstallDisposition
Source§impl PartialEq for InstallDisposition
impl PartialEq for InstallDisposition
impl StructuralPartialEq for InstallDisposition
Auto Trait Implementations§
impl Freeze for InstallDisposition
impl RefUnwindSafe for InstallDisposition
impl Send for InstallDisposition
impl Sync for InstallDisposition
impl Unpin for InstallDisposition
impl UnsafeUnpin for InstallDisposition
impl UnwindSafe for InstallDisposition
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.