I'm not sure that the obligation cited [above] by Neil, not to exceed the speed limit when driving, is what UK law considers a 'duty'.
What comes to mind in this context is an employer's duty to ensure safe and healthy working conditions for his/her employees [a duty of care], or a teacher's duty to do likewise in his or her classroom in a school, college, etc.
As Neil states, failure to discharge duties effectively can lead to the responsible person or body being liable to prosecution, which can lead to penalties being imposed.
An employer, for example, has a liability to follow established legal procedures when dealing with employees, in regard to conduct, payment of salary, contractual matters, etc. A trader has a liability to follow relevant provisions in law regarding the sale of products or services, etc.
The employee, or the consumer, has certain legally defined 'rights', which he can enforce in law if he deems that they have been violated.
There is a network of institutions in the UK which deal with matters of this kind : Employment Tribunals deal with disputes between an employee [or former employee] and his/her employer; local council Trading Standards departments enforce regulations relating to business trade practice; the Health and Safety Executive oversees the enforcement of these matters, etc.