Slice the mushrooms and onions into bite-sized pieces.
Add cooking oil to a pan and stir-fry the mushrooms and onions.
Beat the eggs and scramble them in the pan.
Add the rice and stir-fry until all ingredients are well mixed.
Season with salt and pepper to taste.