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