SimplePipe.valve

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

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

mixin implementValve!(nameOfUpstreamPipe);
struct SimplePipe(Chain, size_t extendElementsDefault = 1)
ref
static if(hasValve!(Chain))
valve
()
if (
isIopipe!Chain
)

Return Value

Type: ref

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

See Also: iopipe.valve

Meta