pub enum RouteSegment {
UseBy {
moniker: Moniker,
capability: UseDecl,
},
OfferBy {
moniker: Moniker,
capability: OfferDecl,
},
ExposeBy {
moniker: Moniker,
capability: ExposeDecl,
},
DeclareBy {
moniker: Moniker,
capability: CapabilityDecl,
},
RegisterBy {
moniker: Moniker,
capability: RegistrationDecl,
},
ProvideFromFramework {
capability: Name,
},
ProvideAsBuiltin {
capability: CapabilityDecl,
},
ProvideFromNamespace {
capability: CapabilityDecl,
},
}
Expand description
Describes a single step taken by the capability routing algorithm.
Variants§
UseBy
The capability was used by a component instance in its manifest.
OfferBy
The capability was offered by a component instance in its manifest.
ExposeBy
The capability was exposed by a component instance in its manifest.
DeclareBy
The capability was declared by a component instance in its manifest.
RegisterBy
The capability was registered in a component instance’s environment in its manifest.
ProvideFromFramework
This is a framework capability served by component manager.
ProvideAsBuiltin
This is a builtin capability served by component manager.
Fields
§
capability: CapabilityDecl
ProvideFromNamespace
This is a capability available in component manager’s namespace.
Fields
§
capability: CapabilityDecl
Implementations§
Trait Implementations§
Source§impl Clone for RouteSegment
impl Clone for RouteSegment
Source§fn clone(&self) -> RouteSegment
fn clone(&self) -> RouteSegment
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 RouteSegment
impl Debug for RouteSegment
Source§impl Display for RouteSegment
impl Display for RouteSegment
Source§impl PartialEq for RouteSegment
impl PartialEq for RouteSegment
impl StructuralPartialEq for RouteSegment
Auto Trait Implementations§
impl Freeze for RouteSegment
impl RefUnwindSafe for RouteSegment
impl Send for RouteSegment
impl Sync for RouteSegment
impl Unpin for RouteSegment
impl UnwindSafe for RouteSegment
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)