pub struct RegistryContainer { /* private fields */ }
Expand description
A container of registries
Implementations§
Source§impl RegistryContainer
impl RegistryContainer
Sourcepub fn new() -> RegistryContainer
pub fn new() -> RegistryContainer
Creates a new registry container. Always contains the default FileSystem
.
Sourcepub fn add_registry<R>(&mut self, registry: R)where
R: Registry + 'static,
pub fn add_registry<R>(&mut self, registry: R)where
R: Registry + 'static,
Add a registry to this container
Sourcepub fn supported_registries(&self, ty: &DependencyType) -> RegistrySet<'_>
pub fn supported_registries(&self, ty: &DependencyType) -> RegistrySet<'_>
Gets the supported registries for a given dependency type
Sourcepub fn supported_registries_intersection<'a, I>(
&'a self,
ty: I,
) -> RegistrySet<'a>where
I: IntoIterator<Item = &'a DependencyType>,
pub fn supported_registries_intersection<'a, I>(
&'a self,
ty: I,
) -> RegistrySet<'a>where
I: IntoIterator<Item = &'a DependencyType>,
Gets the intersection of supported registries for given dependency types
Sourcepub fn set_cache_location(&mut self, cache_location: PathBuf)
pub fn set_cache_location(&mut self, cache_location: PathBuf)
Set the location where files should be downloaded to
Sourcepub fn cache_location(&self) -> &PathBuf
pub fn cache_location(&self) -> &PathBuf
Get where files should be downloaded to
Trait Implementations§
Source§impl Debug for RegistryContainer
impl Debug for RegistryContainer
Source§impl Default for RegistryContainer
impl Default for RegistryContainer
Source§fn default() -> RegistryContainer
fn default() -> RegistryContainer
Returns the “default value” for a type. Read more
impl Send for RegistryContainer
impl Sync for RegistryContainer
Auto Trait Implementations§
impl Freeze for RegistryContainer
impl !RefUnwindSafe for RegistryContainer
impl Unpin for RegistryContainer
impl !UnwindSafe for RegistryContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more