pub enum InternalCapability {
Service(Name),
Protocol(Name),
Directory(Name),
Runner(Name),
Config(Name),
EventStream(Name),
Resolver(Name),
Storage(Name),
Dictionary(Name),
}
Expand description
Describes a capability provided by the component manager which could be a framework capability scoped to a realm, a built-in global capability, or a capability from component manager’s own namespace.
Variants§
Service(Name)
Protocol(Name)
Directory(Name)
Runner(Name)
Config(Name)
EventStream(Name)
Resolver(Name)
Storage(Name)
Dictionary(Name)
Implementations§
Source§impl InternalCapability
impl InternalCapability
pub fn new(type_name: CapabilityTypeName, name: Name) -> Self
Sourcepub fn can_be_in_namespace(&self) -> bool
pub fn can_be_in_namespace(&self) -> bool
Returns whether the given InternalCapability 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.
pub fn source_name(&self) -> &Name
Sourcepub fn matches_protocol(&self, name: &Name) -> bool
pub fn matches_protocol(&self, name: &Name) -> bool
Returns true if this is a protocol with name that matches name
.
Trait Implementations§
Source§impl Clone for InternalCapability
impl Clone for InternalCapability
Source§fn clone(&self) -> InternalCapability
fn clone(&self) -> InternalCapability
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 InternalCapability
impl Debug for InternalCapability
Source§impl Display for InternalCapability
impl Display for InternalCapability
Source§impl FidlIntoNative<InternalCapability> for InternalCapability
impl FidlIntoNative<InternalCapability> for InternalCapability
fn fidl_into_native(self) -> InternalCapability
Source§impl From<CapabilityDecl> for InternalCapability
impl From<CapabilityDecl> for InternalCapability
Source§fn from(capability: CapabilityDecl) -> Self
fn from(capability: CapabilityDecl) -> Self
Converts to this type from the input type.
Source§impl From<ConfigurationDecl> for InternalCapability
impl From<ConfigurationDecl> for InternalCapability
Source§fn from(config: ConfigurationDecl) -> Self
fn from(config: ConfigurationDecl) -> Self
Converts to this type from the input type.
Source§impl From<DirectoryDecl> for InternalCapability
impl From<DirectoryDecl> for InternalCapability
Source§fn from(directory: DirectoryDecl) -> Self
fn from(directory: DirectoryDecl) -> Self
Converts to this type from the input type.
Source§impl From<EventStreamDecl> for InternalCapability
impl From<EventStreamDecl> for InternalCapability
Source§fn from(event: EventStreamDecl) -> Self
fn from(event: EventStreamDecl) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolDecl> for InternalCapability
impl From<ProtocolDecl> for InternalCapability
Source§fn from(protocol: ProtocolDecl) -> Self
fn from(protocol: ProtocolDecl) -> Self
Converts to this type from the input type.
Source§impl From<ResolverDecl> for InternalCapability
impl From<ResolverDecl> for InternalCapability
Source§fn from(resolver: ResolverDecl) -> Self
fn from(resolver: ResolverDecl) -> Self
Converts to this type from the input type.
Source§impl From<RunnerDecl> for InternalCapability
impl From<RunnerDecl> for InternalCapability
Source§fn from(runner: RunnerDecl) -> Self
fn from(runner: RunnerDecl) -> Self
Converts to this type from the input type.
Source§impl From<ServiceDecl> for InternalCapability
impl From<ServiceDecl> for InternalCapability
Source§fn from(service: ServiceDecl) -> Self
fn from(service: ServiceDecl) -> Self
Converts to this type from the input type.
Source§impl From<StorageDecl> for InternalCapability
impl From<StorageDecl> for InternalCapability
Source§fn from(storage: StorageDecl) -> Self
fn from(storage: StorageDecl) -> Self
Converts to this type from the input type.
Source§impl NativeIntoFidl<InternalCapability> for InternalCapability
impl NativeIntoFidl<InternalCapability> for InternalCapability
fn native_into_fidl(self) -> InternalCapability
Source§impl PartialEq for InternalCapability
impl PartialEq for InternalCapability
impl Eq for InternalCapability
impl StructuralPartialEq for InternalCapability
Auto Trait Implementations§
impl Freeze for InternalCapability
impl RefUnwindSafe for InternalCapability
impl Send for InternalCapability
impl Sync for InternalCapability
impl Unpin for InternalCapability
impl UnwindSafe for InternalCapability
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