pub struct SimpleNpmPlugin;
Expand description
Example: Simple plugin that provides NPM package manager
Trait Implementations§
Source§impl Default for SimpleNpmPlugin
impl Default for SimpleNpmPlugin
Source§fn default() -> SimpleNpmPlugin
fn default() -> SimpleNpmPlugin
Returns the “default value” for a type. Read more
Source§impl VxPlugin for SimpleNpmPlugin
impl VxPlugin for SimpleNpmPlugin
Source§fn description(&self) -> &str
fn description(&self) -> &str
Plugin description (optional) Read more
Source§fn package_managers(&self) -> Vec<Box<dyn VxPackageManager>>
fn package_managers(&self) -> Vec<Box<dyn VxPackageManager>>
Get all package managers provided by this plugin Read more
Source§fn supports_tool(&self, _tool_name: &str) -> bool
fn supports_tool(&self, _tool_name: &str) -> bool
Check if this plugin supports a specific tool Read more
Plugin author (optional) Read more
Source§fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Initialize the plugin (optional) Read more
Source§fn shutdown<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Shutdown the plugin (optional) Read more
Source§fn supports_package_manager(&self, pm_name: &str) -> bool
fn supports_package_manager(&self, pm_name: &str) -> bool
Check if this plugin supports a specific package manager Read more
Source§fn get_tool(&self, tool_name: &str) -> Option<Box<dyn VxTool>>
fn get_tool(&self, tool_name: &str) -> Option<Box<dyn VxTool>>
Get a specific tool by name Read more
Source§fn get_package_manager(
&self,
pm_name: &str,
) -> Option<Box<dyn VxPackageManager>>
fn get_package_manager( &self, pm_name: &str, ) -> Option<Box<dyn VxPackageManager>>
Get a specific package manager by name Read more
Source§fn is_compatible_with(&self, vx_version: &str) -> bool
fn is_compatible_with(&self, vx_version: &str) -> bool
Check plugin compatibility with the current vx version Read more
Auto Trait Implementations§
impl Freeze for SimpleNpmPlugin
impl RefUnwindSafe for SimpleNpmPlugin
impl Send for SimpleNpmPlugin
impl Sync for SimpleNpmPlugin
impl Unpin for SimpleNpmPlugin
impl UnwindSafe for SimpleNpmPlugin
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