pub struct Installer { /* private fields */ }Expand description
Package installer
Implementations§
Source§impl Installer
impl Installer
Sourcepub fn new(cache_dir: impl Into<PathBuf>) -> Self
pub fn new(cache_dir: impl Into<PathBuf>) -> Self
Create a new installer with the given cache directory
Sourcepub async fn install(
&self,
packages: &HashMap<String, LockedPackage>,
site_packages: &Path,
) -> Result<Vec<InstallResult>>
pub async fn install( &self, packages: &HashMap<String, LockedPackage>, site_packages: &Path, ) -> Result<Vec<InstallResult>>
Install packages from lockfile into site-packages
Sourcepub fn clear_cache(&self) -> Result<()>
pub fn clear_cache(&self) -> Result<()>
Clear the cache
Auto Trait Implementations§
impl Freeze for Installer
impl !RefUnwindSafe for Installer
impl Send for Installer
impl Sync for Installer
impl Unpin for Installer
impl !UnwindSafe for Installer
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