pub struct ComponentSandbox {
    pub component_input: ComponentInput,
    pub component_output: ComponentOutput,
    pub program_input: ProgramInput,
    pub program_output_dict: Dict,
    pub capability_sourced_capabilities_dict: Dict,
    pub declared_dictionaries: Dict,
    pub child_inputs: StructuredDictMap<ComponentInput>,
    pub collection_inputs: StructuredDictMap<ComponentInput>,
    /* private fields */
}Expand description
A component’s sandbox holds all the routing dictionaries that a component has once its been resolved.
Fields§
§component_input: ComponentInputThe dictionary containing all capabilities that a component’s parent provided to it.
component_output: ComponentOutputThe dictionary containing all capabilities that a component makes available to its parent.
program_input: ProgramInputThe dictionary containing all capabilities that are available to a component’s program.
program_output_dict: DictThe dictionary containing all capabilities that a component’s program can provide.
capability_sourced_capabilities_dict: DictThe dictionary containing all capabilities that a component declares based on another capability. Currently this is only the storage admin protocol.
declared_dictionaries: DictThe dictionary containing all dictionaries declared by this component.
child_inputs: StructuredDictMap<ComponentInput>This set holds a component input dictionary for each child of a component. Each dictionary contains all capabilities the component has made available to a specific collection.
collection_inputs: StructuredDictMap<ComponentInput>This set holds a component input dictionary for each collection declared by a component. Each dictionary contains all capabilities the component has made available to a specific collection.
Implementations§
Source§impl ComponentSandbox
 
impl ComponentSandbox
Sourcepub fn append(&self, sandbox: &ComponentSandbox)
 
pub fn append(&self, sandbox: &ComponentSandbox)
Copies all of the entries from the given sandbox into this one. Panics if the given sandbox is holding any entries that cannot be copied. Panics if there are any duplicate entries.
pub fn framework_router(&self) -> Router<Dict>
Trait Implementations§
Source§impl Clone for ComponentSandbox
 
impl Clone for ComponentSandbox
Source§impl Debug for ComponentSandbox
 
impl Debug for ComponentSandbox
Auto Trait Implementations§
impl !Freeze for ComponentSandbox
impl !RefUnwindSafe for ComponentSandbox
impl Send for ComponentSandbox
impl Sync for ComponentSandbox
impl Unpin for ComponentSandbox
impl !UnwindSafe for ComponentSandbox
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
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>
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>
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