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 FidlIntoNative<ComponentCapability> for ComponentCapability
impl FidlIntoNative<ComponentCapability> for ComponentCapability
fn fidl_into_native(self) -> 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 ConfigurationDecl
impl FromEnum<ComponentCapability> for ConfigurationDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for DictionaryDecl
impl FromEnum<ComponentCapability> for DictionaryDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for DirectoryDecl
impl FromEnum<ComponentCapability> for DirectoryDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for EnvironmentCapability
impl FromEnum<ComponentCapability> for EnvironmentCapability
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for EventStreamDecl
impl FromEnum<ComponentCapability> for EventStreamDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for ExposeDecl
impl FromEnum<ComponentCapability> for ExposeDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for OfferDecl
impl FromEnum<ComponentCapability> for OfferDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for ProtocolDecl
impl FromEnum<ComponentCapability> for ProtocolDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for ResolverDecl
impl FromEnum<ComponentCapability> for ResolverDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for RunnerDecl
impl FromEnum<ComponentCapability> for RunnerDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for ServiceDecl
impl FromEnum<ComponentCapability> for ServiceDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for StorageDecl
impl FromEnum<ComponentCapability> for StorageDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl FromEnum<ComponentCapability> for UseDecl
impl FromEnum<ComponentCapability> for UseDecl
fn from_enum(e: &ComponentCapability) -> Option<&Self>
Source§impl NativeIntoFidl<ComponentCapability> for ComponentCapability
impl NativeIntoFidl<ComponentCapability> for ComponentCapability
fn native_into_fidl(self) -> ComponentCapability
Source§impl PartialEq for ComponentCapability
impl PartialEq for ComponentCapability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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>
Converts
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>
Converts
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