pub struct Process {
pub name: String,
pub id: u32,
pub categories: Vec<ToolCategory>,
pub launch_type: LaunchType,
pub license_type: LicenseCategory,
pub expense: ProcessExpense,
pub top_choice: bool,
pub spec: Spec,
}Expand description
Registry data shared by Rust and Python applications.
UI field descriptors and an adapter implementation are deliberately owned by the consuming application; this type contains the stable, reusable identity and classification of a tool.
Fields§
§name: String§id: u32§categories: Vec<ToolCategory>§launch_type: LaunchType§license_type: LicenseCategory§expense: ProcessExpense§top_choice: bool§spec: SpecImplementations§
Source§impl Process
impl Process
pub fn new( name: impl Into<String>, id: u32, categories: Vec<ToolCategory>, launch_type: LaunchType, license_type: LicenseCategory, expense: ProcessExpense, top_choice: bool, spec: Spec, ) -> Self
Sourcepub fn install(&self, tools_path: &Path) -> Result<()>
pub fn install(&self, tools_path: &Path) -> Result<()>
Install this process to the caller’s managed tools directory.
Sourcepub fn uninstall(&self, tools_path: &Path) -> Result<UninstallReport>
pub fn uninstall(&self, tools_path: &Path) -> Result<UninstallReport>
Remove this process’s environment and assets from the managed tools directory.
Trait Implementations§
impl StructuralPartialEq for Process
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnsafeUnpin for Process
impl UnwindSafe for Process
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