struct ProjectResolutionRegistry {
supplemental_entities_by_digest: BTreeMap<String, GraphEntity>,
candidate_digests_by_key: BTreeMap<CanonicalResolutionKey, BTreeSet<String>>,
retained_bytes: u64,
}Expand description
Project-wide stable entities and their canonical resolution-key bindings.
Fields§
§supplemental_entities_by_digest: BTreeMap<String, GraphEntity>Persisted candidates not already owned by the staged entity projection.
candidate_digests_by_key: BTreeMap<CanonicalResolutionKey, BTreeSet<String>>Canonical keys mapped only to sorted, deduplicated entity digests.
retained_bytes: u64Conservative peak bytes retained by this temporary resolution registry.
Implementations§
Source§impl ProjectResolutionRegistry
impl ProjectResolutionRegistry
Sourcefn insert_candidate(
&mut self,
key: &CanonicalResolutionKey,
entity: &GraphEntity,
) -> Result<(), CliError>
fn insert_candidate( &mut self, key: &CanonicalResolutionKey, entity: &GraphEntity, ) -> Result<(), CliError>
Insert one key-to-entity binding without cloning the entity per exported key.
Sourcefn insert_staged_candidate(
&mut self,
key: &CanonicalResolutionKey,
entity: &GraphEntity,
) -> Result<(), CliError>
fn insert_staged_candidate( &mut self, key: &CanonicalResolutionKey, entity: &GraphEntity, ) -> Result<(), CliError>
Bind an entity already owned by the staged projection without cloning it.
Sourcefn insert_candidate_binding(
&mut self,
key: &CanonicalResolutionKey,
digest: String,
) -> Result<(), CliError>
fn insert_candidate_binding( &mut self, key: &CanonicalResolutionKey, digest: String, ) -> Result<(), CliError>
Insert one canonical-key binding for an entity owned by either registry.
Trait Implementations§
Source§impl Default for ProjectResolutionRegistry
impl Default for ProjectResolutionRegistry
Source§fn default() -> ProjectResolutionRegistry
fn default() -> ProjectResolutionRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProjectResolutionRegistry
impl RefUnwindSafe for ProjectResolutionRegistry
impl Send for ProjectResolutionRegistry
impl Sync for ProjectResolutionRegistry
impl Unpin for ProjectResolutionRegistry
impl UnwindSafe for ProjectResolutionRegistry
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
§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>
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