The fungus in the image is a member of the genus Peziza and it is considered edible, but it is not often eaten in western cultures. You can find it for sale for eating in the fungus sections of Chinese grocery stores.
Identifying which species of Peziza it is, is extremely difficult.
They are considered harmless but like many other mushrooms they release a lot of spores and these are not good to breathe in enclosed spaces for extended time, because they can build up in the lungs. Lung related injuries used to be common among workers who grew mushrooms but today many of the types growing commercially have been bred or altered to make them have reduced spore loads.
I do not recommend eating any fungi identified by photographs online, however the genus Peziza is instantly recognizable and is known to be safe and edible, but has been linked to illness related to exposure to it's spores.
So that is the type of fungus and the risks it specifically poses.
I've been studying mycology for a long time and know this genus well.