[][src]Struct cargo::sources::registry::RegistrySource

pub struct RegistrySource<'cfg> { /* fields omitted */ }

Implementations

impl<'cfg> RegistrySource<'cfg>[src]

pub fn remote(
    source_id: SourceId,
    yanked_whitelist: &HashSet<PackageId>,
    config: &'cfg Config
) -> RegistrySource<'cfg>
[src]

pub fn local(
    source_id: SourceId,
    path: &Path,
    yanked_whitelist: &HashSet<PackageId>,
    config: &'cfg Config
) -> RegistrySource<'cfg>
[src]

pub fn config(&mut self) -> CargoResult<Option<RegistryConfig>>[src]

Decode the configuration stored within the registry.

This requires that the index has been at least checked out.

Trait Implementations

impl<'cfg> Source for RegistrySource<'cfg>[src]

Auto Trait Implementations

impl<'cfg> !RefUnwindSafe for RegistrySource<'cfg>[src]

impl<'cfg> !Send for RegistrySource<'cfg>[src]

impl<'cfg> !Sync for RegistrySource<'cfg>[src]

impl<'cfg> Unpin for RegistrySource<'cfg>[src]

impl<'cfg> !UnwindSafe for RegistrySource<'cfg>[src]

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,