Corrosion inhibiting compounds are used to protect metal surfaces from corrosive elements such as moisture, salt, and chemicals. These compounds work by forming a protective barrier on the metal surface, which prevents corrosive agents from coming into contact with the metal. This barrier can be in the form of a thin film or layer that effectively blocks the penetration of moisture and other corrosive substances. Additionally, corrosion inhibiting compounds may also contain chemical inhibitors that react with the metal surface to form a protective layer, further preventing corrosion. Overall, the function of corrosion inhibiting compounds is to extend the service life of metal components by inhibiting the process of corrosion and rust formation.