When you are playing a match and your rest happens to fall during that time, what happens?

Your whole team, or just the 11 not playing, or do your reserves miss out too?