pub struct NodejsDependencyManager { /* private fields */ }Expand description
Node.js dependency manager
Trait Implementations§
Source§impl DependencyManager for NodejsDependencyManager
impl DependencyManager for NodejsDependencyManager
Source§fn install<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_dependencies: &'life1 [Dependency],
_env: &'life2 LanguageEnvironment,
) -> Pin<Box<dyn Future<Output = Result<InstallationResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn install<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_dependencies: &'life1 [Dependency],
_env: &'life2 LanguageEnvironment,
) -> Pin<Box<dyn Future<Output = Result<InstallationResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Install dependencies in the given environment
Source§fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
_dependencies: &'life1 [Dependency],
) -> Pin<Box<dyn Future<Output = Result<Vec<ResolvedDependency>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
_dependencies: &'life1 [Dependency],
) -> Pin<Box<dyn Future<Output = Result<Vec<ResolvedDependency>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve dependency tree and check for conflicts
Source§fn check_installed<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
dependencies: &'life1 [Dependency],
_env: &'life2 LanguageEnvironment,
) -> Pin<Box<dyn Future<Output = Result<Vec<bool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check_installed<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
dependencies: &'life1 [Dependency],
_env: &'life2 LanguageEnvironment,
) -> Pin<Box<dyn Future<Output = Result<Vec<bool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Check if dependencies are already installed
Source§fn update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_dependencies: &'life1 [Dependency],
_env: &'life2 LanguageEnvironment,
) -> Pin<Box<dyn Future<Output = Result<UpdateResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_dependencies: &'life1 [Dependency],
_env: &'life2 LanguageEnvironment,
) -> Pin<Box<dyn Future<Output = Result<UpdateResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Update dependencies to latest compatible versions
Source§fn uninstall<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_dependencies: &'life1 [Dependency],
_env: &'life2 LanguageEnvironment,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn uninstall<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_dependencies: &'life1 [Dependency],
_env: &'life2 LanguageEnvironment,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Uninstall dependencies
Source§fn list_installed<'life0, 'life1, 'async_trait>(
&'life0 self,
_env: &'life1 LanguageEnvironment,
) -> Pin<Box<dyn Future<Output = Result<Vec<InstalledPackage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_installed<'life0, 'life1, 'async_trait>(
&'life0 self,
_env: &'life1 LanguageEnvironment,
) -> Pin<Box<dyn Future<Output = Result<Vec<InstalledPackage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get installed package information
Auto Trait Implementations§
impl Freeze for NodejsDependencyManager
impl RefUnwindSafe for NodejsDependencyManager
impl Send for NodejsDependencyManager
impl Sync for NodejsDependencyManager
impl Unpin for NodejsDependencyManager
impl UnsafeUnpin for NodejsDependencyManager
impl UnwindSafe for NodejsDependencyManager
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