pub struct EcosystemRuntime {
pub policy: Arc<RegistryAccessPolicy>,
pub nuget_user_profile_sources: Arc<AtomicBool>,
pub gitlab_instance_host: Arc<RwLock<Option<String>>>,
}Expand description
Live-updatable settings register_ecosystems threads into every ecosystem that needs them.
Bundled into one struct (issue #561, M3) rather than growing that function’s arity again for each new cross-ecosystem live flag.
Fields§
§policy: Arc<RegistryAccessPolicy>Gates every workspace-declared registry index host (spec #443,
registries.workspace_registries).
nuget_user_profile_sources: Arc<AtomicBool>registries.nuget_user_profile_sources (issue #561, FR-006) — whether a NuGet
user-profile-tier NuGet.Config source with no repo-declared counterpart becomes a
routing hop, not just a credential source. Default false.
gitlab_instance_host: Arc<RwLock<Option<String>>>registries.gitlab_instance_host (issue #466, spec FR-005a/FR-011a) — the raw
configured GitLab instance host string, or None when unset. A feature-agnostic
Arc<RwLock<Option<String>>> (not a deps-gitlab-ci type) since this struct is
un-cfg’d — see deps_gitlab_ci::host::GitlabInstanceHost’s docs for why host
validation lives in that crate instead, applied on read.
Trait Implementations§
Source§impl Clone for EcosystemRuntime
impl Clone for EcosystemRuntime
Source§fn clone(&self) -> EcosystemRuntime
fn clone(&self) -> EcosystemRuntime
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for EcosystemRuntime
impl RefUnwindSafe for EcosystemRuntime
impl Send for EcosystemRuntime
impl Sync for EcosystemRuntime
impl Unpin for EcosystemRuntime
impl UnsafeUnpin for EcosystemRuntime
impl UnwindSafe for EcosystemRuntime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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