pub enum CapabilitySource {
Component(ComponentSource),
Framework(FrameworkSource),
Builtin(BuiltinSource),
Namespace(NamespaceSource),
Capability(CapabilityToCapabilitySource),
AnonymizedAggregate(AnonymizedAggregateSource),
FilteredProvider(FilteredProviderSource),
FilteredAggregateProvider(FilteredAggregateProviderSource),
Environment(EnvironmentSource),
Void(VoidSource),
}
Expand description
Describes the source of a capability, as determined by find_capability_source
Variants§
Component(ComponentSource)
This capability originates from the component instance for the given Realm. point.
Framework(FrameworkSource)
This capability originates from “framework”. It’s implemented by component manager and is scoped to the realm of the source.
Builtin(BuiltinSource)
This capability originates from the parent of the root component, and is built in to
component manager. top_instance
is the instance at the top of the tree, i.e. the
instance representing component manager.
Namespace(NamespaceSource)
This capability originates from the parent of the root component, and is offered from
component manager’s namespace. top_instance
is the instance at the top of the tree, i.e.
the instance representing component manager.
Capability(CapabilityToCapabilitySource)
This capability is provided by the framework based on some other capability.
AnonymizedAggregate(AnonymizedAggregateSource)
This capability is an aggregate of capabilities over a set of collections and static children. The instance names in the aggregate service will be anonymized.
FilteredProvider(FilteredProviderSource)
This capability is a filtered service capability from a single source, such as self or a child.
FilteredAggregateProvider(FilteredAggregateProviderSource)
This capability is a filtered service capability with multiple sources, such as all of the dynamic children in a collection. The instances in the aggregate service are the union of the filters.
Environment(EnvironmentSource)
This capability originates from “environment”. It’s implemented by a component instance.
Void(VoidSource)
This capability originates from “void”. This is only a valid origination for optional capabilities.
Implementations§
Source§impl CapabilitySource
impl CapabilitySource
Sourcepub fn can_be_in_namespace(&self) -> bool
pub fn can_be_in_namespace(&self) -> bool
Returns whether the given CapabilitySourceInterface can be available in a component’s namespace.
pub fn source_name(&self) -> Option<&Name>
pub fn type_name(&self) -> CapabilityTypeName
pub fn source_moniker(&self) -> ExtendedMoniker
Trait Implementations§
Source§impl Clone for CapabilitySource
impl Clone for CapabilitySource
Source§impl Debug for CapabilitySource
impl Debug for CapabilitySource
Source§impl Display for CapabilitySource
impl Display for CapabilitySource
Source§impl FidlIntoNative<CapabilitySource> for CapabilitySource
impl FidlIntoNative<CapabilitySource> for CapabilitySource
fn fidl_into_native(self) -> CapabilitySource
Source§impl NativeIntoFidl<CapabilitySource> for CapabilitySource
impl NativeIntoFidl<CapabilitySource> for CapabilitySource
fn native_into_fidl(self) -> CapabilitySource
Source§impl PartialEq for CapabilitySource
impl PartialEq for CapabilitySource
Source§impl TryFrom<Capability> for CapabilitySource
impl TryFrom<Capability> for CapabilitySource
Source§impl TryFrom<CapabilitySource> for Capability
impl TryFrom<CapabilitySource> for Capability
Source§impl TryFrom<CapabilitySource> for Data
impl TryFrom<CapabilitySource> for Data
Auto Trait Implementations§
impl Freeze for CapabilitySource
impl RefUnwindSafe for CapabilitySource
impl Send for CapabilitySource
impl Sync for CapabilitySource
impl Unpin for CapabilitySource
impl UnwindSafe for CapabilitySource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)