Function SimplePipe.valve

Implement the required valve function. If the pipe you are wrapping has a valve, you must provide ref access to the valve.

ref auto valve();

Note, the correct boilerplate implementation can be inserted by adding the following line to your pipe structure:

mixin implementValve!(nameOfUpstreamPipe);

Returns

A valve inlet that allows you to control flow of the data through this pipe.

See Also: iopipe.valve