pub struct LocalPackageRegistry { /* private fields */ }Expand description
Local package registry implementation (for testing and local development)
Implementations§
Source§impl LocalPackageRegistry
impl LocalPackageRegistry
Sourcepub fn add_package(&mut self, package_info: PackageInfo)
pub fn add_package(&mut self, package_info: PackageInfo)
Add a package to the local registry
Trait Implementations§
Source§impl Debug for LocalPackageRegistry
impl Debug for LocalPackageRegistry
Source§impl Default for LocalPackageRegistry
impl Default for LocalPackageRegistry
Source§fn default() -> LocalPackageRegistry
fn default() -> LocalPackageRegistry
Returns the “default value” for a type. Read more
Source§impl PackageRegistry for LocalPackageRegistry
impl PackageRegistry for LocalPackageRegistry
Source§fn search_packages(&self, name_pattern: &str) -> Result<Vec<PackageInfo>>
fn search_packages(&self, name_pattern: &str) -> Result<Vec<PackageInfo>>
Search for packages matching the given name pattern
Source§fn get_versions(&self, package_name: &str) -> Result<Vec<String>>
fn get_versions(&self, package_name: &str) -> Result<Vec<String>>
Get available versions for a package
Source§fn download_package(
&self,
_name: &str,
_version: &str,
_dest_path: &Path,
) -> Result<()>
fn download_package( &self, _name: &str, _version: &str, _dest_path: &Path, ) -> Result<()>
Download a specific package version
Source§fn get_package_info(&self, name: &str, version: &str) -> Result<PackageInfo>
fn get_package_info(&self, name: &str, version: &str) -> Result<PackageInfo>
Get package metadata without downloading
Auto Trait Implementations§
impl Freeze for LocalPackageRegistry
impl RefUnwindSafe for LocalPackageRegistry
impl Send for LocalPackageRegistry
impl Sync for LocalPackageRegistry
impl Unpin for LocalPackageRegistry
impl UnsafeUnpin for LocalPackageRegistry
impl UnwindSafe for LocalPackageRegistry
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more