Struct crates_index::BareIndexRepo [−][src]
pub struct BareIndexRepo<'a> { /* fields omitted */ }
Expand description
Opened instance of BareIndex
Implementations
impl<'a> BareIndexRepo<'a>
[src]
impl<'a> BareIndexRepo<'a>
[src]pub fn retrieve(&mut self) -> Result<(), Error>
[src]
pub fn retrieve(&mut self) -> Result<(), Error>
[src]Fetches latest from the remote index repository. Note that using this method will mean no cache entries will be used, if a new commit is fetched from the repository, as their commit version will no longer match.
pub fn crate_(&self, name: &str) -> Option<Crate>
[src]
pub fn crate_(&self, name: &str) -> Option<Crate>
[src]Reads a crate from the index, it will attempt to use a cached entry if one is available, otherwise it will fallback to reading the crate directly from the git blob containing the crate information.
pub fn crates(&self) -> Crates<'_>
[src]
pub fn crates(&self) -> Crates<'_>
[src]Retrieve an iterator over all the crates in the index. skips crates that can not be parsed.
pub fn index_config(&self) -> Result<IndexConfig, Error>
[src]
pub fn index_config(&self) -> Result<IndexConfig, Error>
[src]Get the global configuration of the index.