What happens now Liz Truss has resigned and how will the new prime minister be chosen?

What happens now Liz Truss has resigned and how will the new prime minister be chosen?