pub fn encode_to_string(&self) -> PromResult<String> {
        let mut buf = vec![];
        let encoder = TextEncoder::new();
        encoder.encode(&self.registry.gather(), &mut buf)?;

        // this should be sound because we're using the text encoder
        Ok(unsafe { String::from_utf8_unchecked(buf) })
    }
/// Encodes the metrics into a string to pass onto a scraper
Encodes the metrics into a string to pass onto a scraper
Encodes the metrics into a string to pass onto a scraper
pub fn encode_to_string(&self) -> PromResult<String> {
        let mut buf = vec![];
        let encoder = TextEncoder::new();
        encoder.encode(&self.registry.gather(), &mut buf)?;
        // this should be sound because we're using the text encoder
        Ok(unsafe { String::from_utf8_unchecked(buf) })
    }
pub fn encode_to_string ( & self ) -> PromResult < String > { let mut buf = vec ! [ ] ; let encoder = TextEncoder :: new ( ) ; encoder . encode ( & self . registry . gather ( ) , & mut buf ) ? ; // this should be sound because we're using the text encoder Ok ( unsafe { String :: from_utf8_unchecked ( buf ) } ) }
Encodes the metrics into a string to pass onto a scraper
Encodes the metrics into a string to pass onto a scraper
&self