pub enum ActivationPolicy {
AutoManaged,
Manual,
}Expand description
Whether shellcomp should try to manage activation wiring automatically.
This policy matters most when installing to a custom path. Legacy InstallRequest behavior
remains unchanged: custom paths default to ActivationPolicy::Manual, while managed default
locations default to ActivationPolicy::AutoManaged.
Variants§
AutoManaged
Let shellcomp apply the shell’s managed activation behavior when supported.
For Bash, Zsh, PowerShell, and Elvish this may update managed startup files. Fish keeps using its native completions directory, and unsupported or incompatible targets may still fall back to a manual activation report.
Manual
Write or remove the completion file without attempting managed activation wiring.
Trait Implementations§
Source§impl Clone for ActivationPolicy
impl Clone for ActivationPolicy
Source§fn clone(&self) -> ActivationPolicy
fn clone(&self) -> ActivationPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 ActivationPolicy
impl Debug for ActivationPolicy
Source§impl PartialEq for ActivationPolicy
impl PartialEq for ActivationPolicy
impl Copy for ActivationPolicy
impl Eq for ActivationPolicy
impl StructuralPartialEq for ActivationPolicy
Auto Trait Implementations§
impl Freeze for ActivationPolicy
impl RefUnwindSafe for ActivationPolicy
impl Send for ActivationPolicy
impl Sync for ActivationPolicy
impl Unpin for ActivationPolicy
impl UnsafeUnpin for ActivationPolicy
impl UnwindSafe for ActivationPolicy
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