pub enum ComponentCapability {
Show 13 variants
Use(UseDecl),
Environment(EnvironmentCapability),
Expose(ExposeDecl),
Offer(OfferDecl),
Protocol(ProtocolDecl),
Directory(DirectoryDecl),
Storage(StorageDecl),
Runner(RunnerDecl),
Resolver(ResolverDecl),
Service(ServiceDecl),
EventStream(EventStreamDecl),
Dictionary(DictionaryDecl),
Config(ConfigurationDecl),
}
Expand description
A capability being routed from a component.
Variants§
Use(UseDecl)
Environment(EnvironmentCapability)
Models a capability used from the environment.
Expose(ExposeDecl)
Offer(OfferDecl)
Protocol(ProtocolDecl)
Directory(DirectoryDecl)
Storage(StorageDecl)
Runner(RunnerDecl)
Resolver(ResolverDecl)
Service(ServiceDecl)
EventStream(EventStreamDecl)
Dictionary(DictionaryDecl)
Config(ConfigurationDecl)
Implementations§
source§impl ComponentCapability
impl ComponentCapability
sourcepub fn can_be_in_namespace(&self) -> bool
pub fn can_be_in_namespace(&self) -> bool
Returns whether the given ComponentCapability can be available in a component’s namespace.
sourcepub fn type_name(&self) -> CapabilityTypeName
pub fn type_name(&self) -> CapabilityTypeName
Returns a name for the capability type.
sourcepub fn source_path(&self) -> Option<&Path>
pub fn source_path(&self) -> Option<&Path>
Return the source path of the capability, if one exists.
sourcepub fn source_name(&self) -> Option<&Name>
pub fn source_name(&self) -> Option<&Name>
Return the name of the capability, if this is a capability declaration.
pub fn source_capability_name(&self) -> Option<&Name>
Trait Implementations§
source§impl Clone for ComponentCapability
impl Clone for ComponentCapability
source§fn clone(&self) -> ComponentCapability
fn clone(&self) -> ComponentCapability
Returns a copy of the value. Read more
1.0.0 · 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 ComponentCapability
impl Debug for ComponentCapability
source§impl Display for ComponentCapability
impl Display for ComponentCapability
source§impl From<CapabilityDecl> for ComponentCapability
impl From<CapabilityDecl> for ComponentCapability
source§fn from(capability: CapabilityDecl) -> Self
fn from(capability: CapabilityDecl) -> Self
Converts to this type from the input type.
source§impl From<ConfigurationDecl> for ComponentCapability
impl From<ConfigurationDecl> for ComponentCapability
source§fn from(f: ConfigurationDecl) -> Self
fn from(f: ConfigurationDecl) -> Self
Converts to this type from the input type.
source§impl From<DictionaryDecl> for ComponentCapability
impl From<DictionaryDecl> for ComponentCapability
source§fn from(f: DictionaryDecl) -> Self
fn from(f: DictionaryDecl) -> Self
Converts to this type from the input type.
source§impl From<DirectoryDecl> for ComponentCapability
impl From<DirectoryDecl> for ComponentCapability
source§fn from(f: DirectoryDecl) -> Self
fn from(f: DirectoryDecl) -> Self
Converts to this type from the input type.
source§impl From<EnvironmentCapability> for ComponentCapability
impl From<EnvironmentCapability> for ComponentCapability
source§fn from(f: EnvironmentCapability) -> Self
fn from(f: EnvironmentCapability) -> Self
Converts to this type from the input type.
source§impl From<EventStreamDecl> for ComponentCapability
impl From<EventStreamDecl> for ComponentCapability
source§fn from(f: EventStreamDecl) -> Self
fn from(f: EventStreamDecl) -> Self
Converts to this type from the input type.
source§impl From<ExposeDecl> for ComponentCapability
impl From<ExposeDecl> for ComponentCapability
source§fn from(f: ExposeDecl) -> Self
fn from(f: ExposeDecl) -> Self
Converts to this type from the input type.
source§impl From<OfferDecl> for ComponentCapability
impl From<OfferDecl> for ComponentCapability
source§impl From<ProtocolDecl> for ComponentCapability
impl From<ProtocolDecl> for ComponentCapability
source§fn from(f: ProtocolDecl) -> Self
fn from(f: ProtocolDecl) -> Self
Converts to this type from the input type.
source§impl From<ResolverDecl> for ComponentCapability
impl From<ResolverDecl> for ComponentCapability
source§fn from(f: ResolverDecl) -> Self
fn from(f: ResolverDecl) -> Self
Converts to this type from the input type.
source§impl From<RunnerDecl> for ComponentCapability
impl From<RunnerDecl> for ComponentCapability
source§fn from(f: RunnerDecl) -> Self
fn from(f: RunnerDecl) -> Self
Converts to this type from the input type.
source§impl From<ServiceDecl> for ComponentCapability
impl From<ServiceDecl> for ComponentCapability
source§fn from(f: ServiceDecl) -> Self
fn from(f: ServiceDecl) -> Self
Converts to this type from the input type.
source§impl From<StorageDecl> for ComponentCapability
impl From<StorageDecl> for ComponentCapability
source§fn from(f: StorageDecl) -> Self
fn from(f: StorageDecl) -> Self
Converts to this type from the input type.
source§impl From<UseDecl> for ComponentCapability
impl From<UseDecl> for ComponentCapability
source§impl FromEnum<ComponentCapability> for DictionaryDecl
impl FromEnum<ComponentCapability> for DictionaryDecl
source§impl FromEnum<ComponentCapability> for DirectoryDecl
impl FromEnum<ComponentCapability> for DirectoryDecl
source§impl FromEnum<ComponentCapability> for ExposeDecl
impl FromEnum<ComponentCapability> for ExposeDecl
source§impl FromEnum<ComponentCapability> for OfferDecl
impl FromEnum<ComponentCapability> for OfferDecl
source§impl FromEnum<ComponentCapability> for ProtocolDecl
impl FromEnum<ComponentCapability> for ProtocolDecl
source§impl FromEnum<ComponentCapability> for ResolverDecl
impl FromEnum<ComponentCapability> for ResolverDecl
source§impl FromEnum<ComponentCapability> for RunnerDecl
impl FromEnum<ComponentCapability> for RunnerDecl
source§impl FromEnum<ComponentCapability> for ServiceDecl
impl FromEnum<ComponentCapability> for ServiceDecl
source§impl FromEnum<ComponentCapability> for StorageDecl
impl FromEnum<ComponentCapability> for StorageDecl
source§impl FromEnum<ComponentCapability> for UseDecl
impl FromEnum<ComponentCapability> for UseDecl
source§impl PartialEq for ComponentCapability
impl PartialEq for ComponentCapability
source§fn eq(&self, other: &ComponentCapability) -> bool
fn eq(&self, other: &ComponentCapability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ComponentCapability
impl StructuralPartialEq for ComponentCapability
Auto Trait Implementations§
impl Freeze for ComponentCapability
impl RefUnwindSafe for ComponentCapability
impl Send for ComponentCapability
impl Sync for ComponentCapability
impl Unpin for ComponentCapability
impl UnwindSafe for ComponentCapability
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