Struct crates_index::BareIndex [−][src]
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
impl RefUnwindSafe for BareIndex
impl Send for BareIndex
impl Sync for BareIndex
impl Unpin for BareIndex
impl UnwindSafe for BareIndex
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,