pub fn new(initial: Gateway) -> (Lever, Gate)
Create a Gate in the given initial state. The Lever that it is returned with can raise and lower the gate.
Gate
initial
Lever