A protein or other chemical species, such as a cytochrome or coenzyme Q, that can reversibly gain and lose electrons. They function in the transfer of electrons from organic nutrients to oxygen or some other terminal acceptor as in the case of anaerobes.