pub fn read(&self) -> Result<bool, io::Error> {
        let mut stream = File::open(self.gpio_file("value"))?;
        let mut retrieved = String::new();
        stream.read_to_string(&mut retrieved)?;
        Ok(retrieved.parse::<bool>().expect("Invalid GPIO file value"))
    }
/// Read the value contained into the GPIO value file
Read the value contained into the GPIO value file
Read the value contained into the GPIO value file
pub fn read(&self) -> Result<bool, io::Error> {
        let mut stream = File::open(self.gpio_file("value"))?;
        let mut retrieved = String::new();
        stream.read_to_string(&mut retrieved)?;
        Ok(retrieved.parse::<bool>().expect("Invalid GPIO file value"))
    }
pub fn read ( & self ) -> Result < bool , io :: Error > { let mut stream = File :: open ( self . gpio_file ( " " ) ) ? ; let mut retrieved = String :: new ( ) ; stream . read_to_string ( & mut retrieved ) ? ; Ok ( retrieved . parse :: < bool > ( ) . expect ( " " ) ) }
Read the value contained into the GPIO value file
Read the value contained into the GPIO value file
&self
&self