pub enum RegistryPolicy<'a> {
Strict,
StrictFor(&'a BTreeSet<String>),
}Expand description
How the loader treats a versioned dependency edge whose name is
not present in registry. Pre-resolution loads (port discovery,
cabin metadata fallback) carry no registry yet but may carry
patches that contribute names to the loader’s internal name map;
the RegistryPolicy::StrictFor variant lets callers scope
enforcement so the resolver-less paths don’t surface bogus
missing-registry diagnostics.
Variants§
Strict
Every parent’s registry deps must be present in registry.
Default. Used after the resolver has populated registry
with the closure’s full pinned set.
StrictFor(&'a BTreeSet<String>)
Strict only for parents whose names appear in the set; names outside silently skip a missing-registry edge. Passing an empty set tolerates every parent — used by pre-resolution loads.
Trait Implementations§
Source§impl<'a> Clone for RegistryPolicy<'a>
impl<'a> Clone for RegistryPolicy<'a>
Source§fn clone(&self) -> RegistryPolicy<'a>
fn clone(&self) -> RegistryPolicy<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RegistryPolicy<'a>
impl<'a> Debug for RegistryPolicy<'a>
Source§impl<'a> Default for RegistryPolicy<'a>
impl<'a> Default for RegistryPolicy<'a>
Source§fn default() -> RegistryPolicy<'a>
fn default() -> RegistryPolicy<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for RegistryPolicy<'a>
impl<'a> RefUnwindSafe for RegistryPolicy<'a>
impl<'a> Send for RegistryPolicy<'a>
impl<'a> Sync for RegistryPolicy<'a>
impl<'a> Unpin for RegistryPolicy<'a>
impl<'a> UnsafeUnpin for RegistryPolicy<'a>
impl<'a> UnwindSafe for RegistryPolicy<'a>
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