Struct routing::legacy_router::AllowedSourcesBuilder
source · pub struct AllowedSourcesBuilder { /* private fields */ }
Expand description
Defines which capability source types are supported.
Implementations§
source§impl AllowedSourcesBuilder
impl AllowedSourcesBuilder
sourcepub fn new(capability: CapabilityTypeName) -> Self
pub fn new(capability: CapabilityTypeName) -> Self
Creates a new AllowedSourcesBuilder
that does not allow any capability source types.
sourcepub fn framework(self, builder: fn(_: Name) -> InternalCapability) -> Self
pub fn framework(self, builder: fn(_: Name) -> InternalCapability) -> Self
Allows framework capability source types (from: "framework"
in CML
).
sourcepub fn capability(self) -> Self
pub fn capability(self) -> Self
Allows capability source types that originate from other capabilities (from: "#storage"
in
CML
).
sourcepub fn collection(self) -> Self
pub fn collection(self) -> Self
Allows capability sources to originate from a collection.
sourcepub fn namespace(self) -> Self
pub fn namespace(self) -> Self
Allows namespace capability source types, which are capabilities that are installed in component_manager’s incoming namespace.
sourcepub fn builtin(self) -> Self
pub fn builtin(self) -> Self
Allows built-in capability source types (from: "parent"
in CML
where the parent component_instance is
component_manager).
pub fn build(self) -> Sources
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AllowedSourcesBuilder
impl RefUnwindSafe for AllowedSourcesBuilder
impl Send for AllowedSourcesBuilder
impl Sync for AllowedSourcesBuilder
impl Unpin for AllowedSourcesBuilder
impl UnwindSafe for AllowedSourcesBuilder
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