routing::bedrock::program_output_dictTrait ProgramOutputGenerator
Source pub trait ProgramOutputGenerator<C: ComponentInstanceInterface + 'static> {
// Required methods
fn new_program_dictionary_router(
&self,
component: WeakComponentInstanceInterface<C>,
path: Path,
capability: ComponentCapability,
) -> Router<Dict>;
fn new_outgoing_dir_connector_router(
&self,
component: &Arc<C>,
decl: &ComponentDecl,
capability: &CapabilityDecl,
) -> Router<Connector>;
fn new_outgoing_dir_dir_entry_router(
&self,
component: &Arc<C>,
decl: &ComponentDecl,
capability: &CapabilityDecl,
) -> Router<DirEntry>;
fn new_outgoing_dir_dictionary_router(
&self,
component: &Arc<C>,
decl: &ComponentDecl,
capability: &CapabilityDecl,
) -> Router<Dict>;
}
Get a router for Dict that forwards the request to a Router served at path
in the program’s outgoing directory.
Get an outgoing directory router for capability
that returns Connector. capability
should be a type that maps to Connector.
Get an outgoing directory router for capability
that returns DirEntry. capability
should be a type that maps to DirEntry.
Get an outgoing directory router for capability
that returns Dict. capability
should be a type that maps to Dict.