Is there a latch that works like a T-flip-flop? Is there a way to implement an asynchronous T flip-flop (with only one input pulse)?
In a way I want to use one input as set and reset at the same time. The first change from 0 to 1 will be used as set and the change after will be used for the reset. Is there a name for this circuit?

[![enter image description here][1]][1]


  [1]: https://i.sstatic.net/UmdG9.png