pub struct CapabilityRef {
pub component_id: ComponentInstanceId,
pub capability_id: CapabilityId,
}Expand description
One capability of one component instance, written component.capability.
The wire form is that single dotted string, not a two-field object.
Fields§
§component_id: ComponentInstanceId§capability_id: CapabilityIdImplementations§
Source§impl CapabilityRef
impl CapabilityRef
Sourcepub const fn new(
component_id: ComponentInstanceId,
capability_id: CapabilityId,
) -> Self
pub const fn new( component_id: ComponentInstanceId, capability_id: CapabilityId, ) -> Self
Pair two already-validated identities.
Trait Implementations§
Source§impl Clone for CapabilityRef
impl Clone for CapabilityRef
Source§fn clone(&self) -> CapabilityRef
fn clone(&self) -> CapabilityRef
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 CapabilityRef
impl Debug for CapabilityRef
Source§impl DescribeWire for CapabilityRef
impl DescribeWire for CapabilityRef
Source§fn wire_schema() -> WireSchema
fn wire_schema() -> WireSchema
The shape a value of this type puts on the wire.
Source§impl<'de> Deserialize<'de> for CapabilityRef
impl<'de> Deserialize<'de> for CapabilityRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CapabilityRef
impl Display for CapabilityRef
impl Eq for CapabilityRef
Source§impl From<CapabilityRef> for String
impl From<CapabilityRef> for String
Source§fn from(value: CapabilityRef) -> Self
fn from(value: CapabilityRef) -> Self
Converts to this type from the input type.
Source§impl FromStr for CapabilityRef
impl FromStr for CapabilityRef
Source§impl Hash for CapabilityRef
impl Hash for CapabilityRef
Source§impl Ord for CapabilityRef
impl Ord for CapabilityRef
Source§fn cmp(&self, other: &CapabilityRef) -> Ordering
fn cmp(&self, other: &CapabilityRef) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CapabilityRef
impl PartialEq for CapabilityRef
Source§impl PartialOrd for CapabilityRef
impl PartialOrd for CapabilityRef
Source§impl Serialize for CapabilityRef
impl Serialize for CapabilityRef
impl StructuralPartialEq for CapabilityRef
Auto Trait Implementations§
impl Freeze for CapabilityRef
impl RefUnwindSafe for CapabilityRef
impl Send for CapabilityRef
impl Sync for CapabilityRef
impl Unpin for CapabilityRef
impl UnsafeUnpin for CapabilityRef
impl UnwindSafe for CapabilityRef
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