pub enum HostRef {
Literal(GitlabHost),
Unresolved(String),
CapacityRefused(String),
}Expand description
A dependency’s resolved (or not-yet-resolvable) host.
Variants§
Literal(GitlabHost)
A validated, policy-gated host — from a component: prefix, or from
registries.gitlab_instance_host (spec FR-011a).
Unresolved(String)
$CI_SERVER_FQDN (or another unresolved CI-time variable), or a project: include
with the instance-host setting unset — carries the raw, unresolved expression for
display only (spec FR-012).
CapacityRefused(String)
A host that validated successfully but whose route/admission was refused purely by a
capacity limit (spec §4.6’s per-document host cap, or the registry’s process-wide
MAX_GITLAB_ROUTES cap) — carries the host’s normalized origin. Deliberately distinct
from Self::Unresolved (#466 review M-a): the host genuinely is determinable, so
the diagnostic this produces must never suggest registries.gitlab_instance_host as
the fix — a capacity refusal needs fewer distinct hosts/includes, not that setting.
Trait Implementations§
impl Eq for HostRef
impl StructuralPartialEq for HostRef
Auto Trait Implementations§
impl Freeze for HostRef
impl RefUnwindSafe for HostRef
impl Send for HostRef
impl Sync for HostRef
impl Unpin for HostRef
impl UnsafeUnpin for HostRef
impl UnwindSafe for HostRef
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.