1 module des.flow.signal; 2 3 import des.flow.base; 4 5 /// Control signal 6 struct CtrlSignal 7 { 8 /// 9 ulong code; 10 11 pure nothrow @nogc: 12 /// 13 this( ulong code ) { this.code = code; } 14 /// 15 this( in CtrlSignal s ) { this.code = s.code; } 16 } 17 18 /// 19 interface CtrlSignalProcessor { /++ +/ void processCtrlSignal( in CtrlSignal ); } 20 21 /// 22 interface CtrlSignalBus { /++ +/ void sendCtrlSignal( in CtrlSignal ); } 23 24 unittest 25 { 26 assert( creationTest( CtrlSignal(0) ) ); 27 }