How to Protect UK Rights of EU Citizens Post-Brexit

What status will EU citizens have in the UK after Brexit and how can they protect their rights under European immigration rules?