Struct crates_index::BareIndexRepo[][src]

pub struct BareIndexRepo<'a> { /* fields omitted */ }
Expand description

Opened instance of BareIndex

Implementations

impl<'a> BareIndexRepo<'a>[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]

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]

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]

Get the global configuration of the index.

Auto Trait Implementations

impl<'a> RefUnwindSafe for BareIndexRepo<'a>

impl<'a> !Send for BareIndexRepo<'a>

impl<'a> !Sync for BareIndexRepo<'a>

impl<'a> !Unpin for BareIndexRepo<'a>

impl<'a> UnwindSafe for BareIndexRepo<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.