Function new

Source
pub fn new(initial: Gateway) -> (Lever, Gate)
Expand description

Create a Gate in the given initial state. The Lever that it is returned with can raise and lower the gate.