Function prometheus::unregister [] [src]

pub fn unregister(c: Box<Collector>) -> Result<()>

unregister unregisters the Collector that equals the Collector passed in as an argument. (Two Collectors are considered equal if their Describe method yields the same set of descriptors.) The function returns an error if a Collector was not registered.