routing::bedrock::program_output_dict

Trait 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>;
}

Required Methods§

Source

fn new_program_dictionary_router( &self, component: WeakComponentInstanceInterface<C>, path: Path, capability: ComponentCapability, ) -> Router<Dict>

Get a router for Dict that forwards the request to a Router served at path in the program’s outgoing directory.

Source

fn new_outgoing_dir_connector_router( &self, component: &Arc<C>, decl: &ComponentDecl, capability: &CapabilityDecl, ) -> Router<Connector>

Get an outgoing directory router for capability that returns Connector. capability should be a type that maps to Connector.

Source

fn new_outgoing_dir_dir_entry_router( &self, component: &Arc<C>, decl: &ComponentDecl, capability: &CapabilityDecl, ) -> Router<DirEntry>

Get an outgoing directory router for capability that returns DirEntry. capability should be a type that maps to DirEntry.

Source

fn new_outgoing_dir_dictionary_router( &self, component: &Arc<C>, decl: &ComponentDecl, capability: &CapabilityDecl, ) -> Router<Dict>

Get an outgoing directory router for capability that returns Dict. capability should be a type that maps to Dict.

Implementors§