pub enum Action {
EnvScriptWritten {
shell: ShellKind,
path: PathBuf,
},
EnvScriptAlreadyExists {
shell: ShellKind,
path: PathBuf,
},
EnvScriptRemoved {
shell: ShellKind,
path: PathBuf,
},
SourceLineAdded {
shell: ShellKind,
rc_file: PathBuf,
},
SourceLineAlreadyPresent {
shell: ShellKind,
rc_file: PathBuf,
},
SourceLineRemoved {
shell: ShellKind,
rc_file: PathBuf,
},
BackupCreated {
original: PathBuf,
backup: PathBuf,
},
ShellSkipped {
shell: ShellKind,
reason: String,
},
RegistryModified {
old_value: String,
new_value: String,
},
RegistryAlreadyContains,
RegistryEntryRemoved {
old_value: String,
new_value: String,
},
}Expand description
A single operation performed during PATH installation or removal.
Variants§
EnvScriptWritten
A new env script was written for a shell.
Fields
EnvScriptAlreadyExists
An env script already existed with the correct content.
Fields
EnvScriptRemoved
An env script was removed during uninstallation.
Fields
SourceLineAdded
A source line was added to a shell RC file.
Fields
SourceLineAlreadyPresent
A source line was already present in the RC file.
Fields
SourceLineRemoved
A source line was removed from a shell RC file.
Fields
BackupCreated
A backup was created before modifying an RC file.
Fields
ShellSkipped
A shell was skipped because no writable RC files were found.
RegistryModified
The Windows registry PATH was modified.
RegistryAlreadyContains
The Windows registry PATH already contained the directory.
RegistryEntryRemoved
An entry was removed from the Windows registry PATH.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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