unidirectional pipelines
[folly.git] / folly / wangle / channel / Handler.h
index 676c2fabf3783e4ee14e6d643cb3d7b8255ab672..cdad11e53f65124e8c91db43239b695dc04412cf 100644 (file)
@@ -101,8 +101,6 @@ class Handler : public HandlerBase<HandlerContext<Rout, Wout>> {
   */
 };
 
-struct Unit{};
-
 template <class Rin, class Rout = Rin>
 class InboundHandler : public HandlerBase<InboundHandlerContext<Rout>> {
  public:
@@ -110,8 +108,8 @@ class InboundHandler : public HandlerBase<InboundHandlerContext<Rout>> {
 
   typedef Rin rin;
   typedef Rout rout;
-  typedef Unit win;
-  typedef Unit wout;
+  typedef Nothing win;
+  typedef Nothing wout;
   typedef InboundHandlerContext<Rout> Context;
   virtual ~InboundHandler() {}
 
@@ -129,8 +127,8 @@ class OutboundHandler : public HandlerBase<OutboundHandlerContext<Wout>> {
  public:
   static const HandlerDir dir = HandlerDir::OUT;
 
-  typedef Unit rin;
-  typedef Unit rout;
+  typedef Nothing rin;
+  typedef Nothing rout;
   typedef Win win;
   typedef Wout wout;
   typedef OutboundHandlerContext<Wout> Context;