Coating made of titanium hydride