pub struct TestRegistry { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Clone for TestRegistry
impl Clone for TestRegistry
Source§fn clone(&self) -> TestRegistry
fn clone(&self) -> TestRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PackageSourceProvider for TestRegistry
impl PackageSourceProvider for TestRegistry
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 TestRegistry
impl RefUnwindSafe for TestRegistry
impl Send for TestRegistry
impl Sync for TestRegistry
impl Unpin for TestRegistry
impl UnwindSafe for TestRegistry
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