Electronic equilevant of latching relay circuitry