Struct fuchsia_component_test::Capability
source · pub struct Capability;
Expand description
A capability, which may be routed between different components with a Route
.
Implementations§
source§impl Capability
impl Capability
sourcepub fn protocol<P: DiscoverableProtocolMarker>() -> ProtocolCapability
pub fn protocol<P: DiscoverableProtocolMarker>() -> ProtocolCapability
Creates a new protocol capability, whose name is derived from a protocol marker.
sourcepub fn protocol_by_name(name: impl Into<String>) -> ProtocolCapability
pub fn protocol_by_name(name: impl Into<String>) -> ProtocolCapability
Creates a new protocol capability.
sourcepub fn configuration(name: impl Into<String>) -> ConfigurationCapability
pub fn configuration(name: impl Into<String>) -> ConfigurationCapability
Creates a new configuration capability.
sourcepub fn directory(name: impl Into<String>) -> DirectoryCapability
pub fn directory(name: impl Into<String>) -> DirectoryCapability
Creates a new directory capability.
sourcepub fn storage(name: impl Into<String>) -> StorageCapability
pub fn storage(name: impl Into<String>) -> StorageCapability
Creates a new storage capability.
sourcepub fn service<S: ServiceMarker>() -> ServiceCapability
pub fn service<S: ServiceMarker>() -> ServiceCapability
Creates a new service capability, whose name is derived from a protocol marker.
sourcepub fn service_by_name(name: impl Into<String>) -> ServiceCapability
pub fn service_by_name(name: impl Into<String>) -> ServiceCapability
Creates a new service capability.
sourcepub fn event_stream(name: impl Into<String>) -> EventStream
pub fn event_stream(name: impl Into<String>) -> EventStream
Creates a new event_stream capability.
sourcepub fn dictionary(name: impl Into<String>) -> DictionaryCapability
pub fn dictionary(name: impl Into<String>) -> DictionaryCapability
Creates a new dictionary capability.
sourcepub fn resolver(name: impl Into<String>) -> ResolverCapability
pub fn resolver(name: impl Into<String>) -> ResolverCapability
Creates a new resolver capability.
sourcepub fn runner(name: impl Into<String>) -> RunnerCapability
pub fn runner(name: impl Into<String>) -> RunnerCapability
Creates a new runner capability.
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnwindSafe for Capability
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