pub trait Registry {
fn query(
&mut self,
dep: &Dependency,
f: &mut dyn FnMut(Summary),
fuzzy: bool
) -> Poll<CargoResult<()>>;
fn describe_source(&self, source: SourceId) -> String;
fn is_replaced(&self, source: SourceId) -> bool;
fn block_until_ready(&mut self) -> CargoResult<()>;
fn query_vec(
&mut self,
dep: &Dependency,
fuzzy: bool
) -> Poll<CargoResult<Vec<Summary>>> { ... }
}
Expand description
Source of information about a group of packages.
See also core::Source
.
Required Methods
fn query(
&mut self,
dep: &Dependency,
f: &mut dyn FnMut(Summary),
fuzzy: bool
) -> Poll<CargoResult<()>>
fn query(
&mut self,
dep: &Dependency,
f: &mut dyn FnMut(Summary),
fuzzy: bool
) -> Poll<CargoResult<()>>
Attempt to find the packages that match a dependency request.
fn describe_source(&self, source: SourceId) -> String
fn is_replaced(&self, source: SourceId) -> bool
fn block_until_ready(&mut self) -> CargoResult<()>
fn block_until_ready(&mut self) -> CargoResult<()>
Block until all outstanding Poll::Pending requests are Poll::Ready.