pub struct CapabilitySetDiff {
pub added_tags: HashSet<Tag>,
pub removed_tags: HashSet<Tag>,
pub changed_metadata: Vec<MetadataChange>,
}Expand description
Structural difference between two CapabilitySet values.
Returned by CapabilitySet::diff. Carries:
added_tags: tags inselfthat aren’t inprev.removed_tags: tags inprevthat aren’t inself.changed_metadata: per-key metadata changes (Added / Removed / Updated). Key renames surface as Removed + Added, not as Updated, since the key identity changed.
The diff is the input shape for event-driven placement
updates, capability-change dashboards, and delta-based
metadata propagation. For the structural ops shape consumed
by the propagation path, use
crate::adapter::net::behavior::diff::DiffEngine::diff.
Fields§
Tags newly present in self.
Tags that were in prev but are no longer in self.
changed_metadata: Vec<MetadataChange>Per-key metadata changes, in key order.
Implementations§
Trait Implementations§
Source§impl Clone for CapabilitySetDiff
impl Clone for CapabilitySetDiff
Source§fn clone(&self) -> CapabilitySetDiff
fn clone(&self) -> CapabilitySetDiff
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 Debug for CapabilitySetDiff
impl Debug for CapabilitySetDiff
Source§impl PartialEq for CapabilitySetDiff
impl PartialEq for CapabilitySetDiff
Source§fn eq(&self, other: &CapabilitySetDiff) -> bool
fn eq(&self, other: &CapabilitySetDiff) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CapabilitySetDiff
Auto Trait Implementations§
impl Freeze for CapabilitySetDiff
impl RefUnwindSafe for CapabilitySetDiff
impl Send for CapabilitySetDiff
impl Sync for CapabilitySetDiff
impl Unpin for CapabilitySetDiff
impl UnsafeUnpin for CapabilitySetDiff
impl UnwindSafe for CapabilitySetDiff
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