What rules apply if my flight is cancelled?

What rules apply if my flight is cancelled?