pub struct Component { /* private fields */ }Expand description
One component type: the capabilities and structure every instance of it has.
Implementations§
Source§impl Component
impl Component
Sourcepub fn capability(&self, capability_id: &str) -> Option<&Capability>
pub fn capability(&self, capability_id: &str) -> Option<&Capability>
The named capability, if this type declares it.
Sourcepub fn capabilities(
&self,
) -> impl ExactSizeIterator<Item = (&CapabilityId, &Capability)>
pub fn capabilities( &self, ) -> impl ExactSizeIterator<Item = (&CapabilityId, &Capability)>
Every declared capability, ordered by capability id.
Trait Implementations§
Source§impl DescribeWire for Component
impl DescribeWire for Component
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 Component
impl<'de> Deserialize<'de> for Component
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
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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