pub enum PortPolicy<'a> {
Strict,
TolerateExcept(&'a BTreeSet<String>),
}Expand description
How the loader treats DependencySource::Port declarations
from a WorkspaceLoadOptions call.
Variants§
Strict
A port dep must be either a port-path directory on disk
plus present in ports, or a port = true name present in
ports. Anything else surfaces the typed
PortDependencyNotPrepared / PortDirectoryMissing
diagnostic. Default.
TolerateExcept(&'a BTreeSet<String>)
Tolerate missing port deps except for parent packages whose names appear in this set — the caller’s selected closure. Names in the set still surface the typed diagnostics; names outside the set silently skip the missing edge.
Passing an empty set tolerates every parent (legacy “tolerate-all” behavior); pass a populated set to keep selected packages strict while unselected siblings tolerate.
Trait Implementations§
Source§impl<'a> Clone for PortPolicy<'a>
impl<'a> Clone for PortPolicy<'a>
Source§fn clone(&self) -> PortPolicy<'a>
fn clone(&self) -> PortPolicy<'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 PortPolicy<'a>
impl<'a> Debug for PortPolicy<'a>
Source§impl<'a> Default for PortPolicy<'a>
impl<'a> Default for PortPolicy<'a>
Source§fn default() -> PortPolicy<'a>
fn default() -> PortPolicy<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for PortPolicy<'a>
impl<'a> RefUnwindSafe for PortPolicy<'a>
impl<'a> Send for PortPolicy<'a>
impl<'a> Sync for PortPolicy<'a>
impl<'a> Unpin for PortPolicy<'a>
impl<'a> UnsafeUnpin for PortPolicy<'a>
impl<'a> UnwindSafe for PortPolicy<'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