pub struct PeerContribution {
pub owner: FeatureName,
pub slot: Name,
pub ty: TypeKey,
pub resolved: bool,
}Expand description
The record of one peer contribution in the finished registry: which feature offered a value to which service slot, and whether any feature of the registry declares that slot.
A feature makes a peer contribution with
FeatureBuilder::peer_slot.
Read the records through Services::peer_contributions, or through
FlmRegistry::peer_slots
together with the other peer declarations, so that a misspelled slot name
can be found on any registry that holds the feature.
Fields§
§owner: FeatureNameThe feature that contributed the value.
slot: NameThe name of the service slot the value was offered to.
ty: TypeKeyThe type the value was contributed as, which is the peer declaration’s
signature: when the slot is declared, assemble checked this type
against the slot’s own.
resolved: boolWhether some feature of this registry declares the slot. When false,
the value was dropped and the registry build recorded one Note.
Trait Implementations§
Source§impl Clone for PeerContribution
impl Clone for PeerContribution
Source§impl Debug for PeerContribution
impl Debug for PeerContribution
impl Eq for PeerContribution
Source§impl PartialEq for PeerContribution
impl PartialEq for PeerContribution
impl StructuralPartialEq for PeerContribution
Auto Trait Implementations§
impl Forget for PeerContribution
impl Freeze for PeerContribution
impl Move for PeerContribution
impl RefUnwindSafe for PeerContribution
impl Send for PeerContribution
impl Sync for PeerContribution
impl Unpin for PeerContribution
impl UnsafeUnpin for PeerContribution
impl UnwindSafe for PeerContribution
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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