pub struct Registry { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl PackageSourceProvider for Registry
impl PackageSourceProvider for Registry
Source§fn update(&self) -> Result<()>
fn update(&self) -> Result<()>
Update this package source, if it has state that needs to be updated.
Source§fn query(&self, package_req: &PackageReq) -> Result<Vec<Manifest>>
fn query(&self, package_req: &PackageReq) -> Result<Vec<Manifest>>
Query this package source for all of the packages that match this
PackageReq
.Source§fn download_package(&self, package_id: &PackageId) -> Result<PackageContents>
fn download_package(&self, package_id: &PackageId) -> Result<PackageContents>
Downloads the contents of a package given its fully-qualified
PackageId
.Source§fn fallback_sources(&self) -> Result<Vec<PackageSourceId>>
fn fallback_sources(&self) -> Result<Vec<PackageSourceId>>
Provide a list of fallback sources to search if this source can’t provide a package
Auto Trait Implementations§
impl !Freeze for Registry
impl !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
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