pub struct CapabilityInterestKey {
pub capability_id: CapabilityId,
pub interest_digest: Digest256,
}Expand description
The capability-interest identity (plan §3.2) — what the consumer wants, free of any provider identity. Coalescing, the per-hop interest table, and the fold overlay key on this.
Fields§
§capability_id: CapabilityIdCapability the interest targets (indexing convenience; also bound inside the digest).
interest_digest: Digest256The 256-bit interest identity
(InterestSpec::interest_digest).
Implementations§
Source§impl CapabilityInterestKey
impl CapabilityInterestKey
Sourcepub fn for_spec(spec: &InterestSpec) -> Self
pub fn for_spec(spec: &InterestSpec) -> Self
Key a spec.
Trait Implementations§
Source§impl Clone for CapabilityInterestKey
impl Clone for CapabilityInterestKey
Source§fn clone(&self) -> CapabilityInterestKey
fn clone(&self) -> CapabilityInterestKey
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 CapabilityInterestKey
impl Debug for CapabilityInterestKey
impl Eq for CapabilityInterestKey
Source§impl Hash for CapabilityInterestKey
impl Hash for CapabilityInterestKey
Source§impl PartialEq for CapabilityInterestKey
impl PartialEq for CapabilityInterestKey
impl StructuralPartialEq for CapabilityInterestKey
Auto Trait Implementations§
impl Freeze for CapabilityInterestKey
impl RefUnwindSafe for CapabilityInterestKey
impl Send for CapabilityInterestKey
impl Sync for CapabilityInterestKey
impl Unpin for CapabilityInterestKey
impl UnsafeUnpin for CapabilityInterestKey
impl UnwindSafe for CapabilityInterestKey
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.