Skip to main content

plug

Function plug 

Source
pub fn plug(
    graph: &mut CompositionGraph,
    plugs: Vec<PackageId>,
    socket: PackageId,
) -> Result<(), PlugError>
Expand description

Take the exports of the plug components and plug them into the socket component.

Note that the PackageIds in plugs and socket must be registered with the graph before calling this function.