oscen
macro_rules! gate { ($t:ty) => { ... }; }
If your module has on and off methods you can use this macro to generate the Gate trait.
on
off
Gate