connect

Function connect 

Source
pub fn connect<T, P>(
    machine: T,
) -> (Arc<Mutex<T>>, Sender<<<P as MachineImpl>::Adapter as MachineBuilder>::InstructionSet>)
where T: 'static + Machine<P> + Machine<<<P as MachineImpl>::Adapter as MachineBuilder>::InstructionSet>, P: MachineImpl, <P as MachineImpl>::Adapter: MachineBuilder,
Expand description

The connect method creates a machine, implementing an instruction set. The machine has a bound communication channel of a default size receiving those instructions.