Rust is a type of corrosion that forms when iron or steel is exposed to oxygen and moisture. This can happen when a gun is stored in a humid environment or when it is left out in the rain. Rust can also form if the gun is not cleaned properly after use.