pub fn read_counter_uj(&self) -> Result<String, Box<dyn Error>> {
        match fs::read_to_string(&self.counter_uj_path) {
            Ok(result) => Ok(result),
            Err(error) => Err(Box::new(error)),
        }
    }
/// Returns the content of the energy consumption counter file, as a String
/// value of microjoules.
Returns the content of the energy consumption counter file, as a String
value of microjoules.
Returns the content of the energy consumption counter file as a String value of microjoules .
pub fn read_counter_uj(&self) -> Result<String, Box<dyn Error>> {
        match fs::read_to_string(&self.counter_uj_path) {
            Ok(result) => Ok(result),
            Err(error) => Err(Box::new(error)),
        }
    }
pub fn read_counter_uj ( & self ) -> Result < String , Box < dyn Error > > { match fs :: read_to_string ( & self . counter_uj_path ) { Ok ( result ) => Ok ( result ) , Err ( error ) => Err ( Box :: new ( error ) ) , } }
Returns the content of the energy consumption counter file, as a String
value of microjoules.
Returns the content of the energy consumption counter file as a String value of microjoules .
&self
&self