[][src]Struct crates_index::BareIndex

pub struct BareIndex {
    pub url: String,
    // some fields omitted
}

Access to a "bare" git index that fetches files directly from the repo instead of local checkout

Uses Cargo's cache

Fields

url: String

Implementations

impl BareIndex[src]

pub fn from_url(url: &str) -> Result<Self, Error>[src]

Creates a bare index from a provided URL, opening the same location on disk that cargo uses for that registry index.

pub fn with_path(path: PathBuf, url: &str) -> Self[src]

Creates a bare index at the provided path with the specified repository URL.

pub fn new_cargo_default() -> Self[src]

Creates an index for the default crates.io registry, using the same disk location as cargo itself.

pub fn open_or_clone(&self) -> Result<BareIndexRepo<'_>, Error>[src]

Opens the local index, which acts as a kind of lock for source control operations

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.

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.