Which Electronic Device Acts Like a Check Valve?

In plumbing, a check valve lets water flow in only one direction and blocks reverse flow.

In electronics, which component does the same job for electric current?

a) Resistor
b) Capacitor
c) Diode