fn init(&self) -> Result<Self, io::Error> {
        let mut stream = File::create(format!("{}/export", PATH))?;
        write!(stream, "{}", self.pin)?;

        let mut stream = File::create(self.gpio_file("direction"))?;
        write!(stream, "out")?;

        Ok(self.clone())
    }
/// Init the export and direction files \
/// Created to be called in the constructor, could not be called by the 
/// user
Init the export and direction files \
Created to be called in the constructor, could not be called by the
user
Init the export and direction files \ Created to be called in the constructor could not be called by the user
fn init(&self) -> Result<Self, io::Error> {
        let mut stream = File::create(format!("{}/export", PATH))?;
        write!(stream, "{}", self.pin)?;
        let mut stream = File::create(self.gpio_file("direction"))?;
        write!(stream, "out")?;
        Ok(self.clone())
    }
fn init ( & self ) -> Result < Self , io :: Error > { let mut stream = File :: create ( format ! ( " " PATH ) ) ? ; write ! ( stream " " self pin ) ? ; let mut stream = File :: create ( self . gpio_file ( " " ) ) ? ; write ! ( stream " " ) ? ; Ok ( self . clone ( ) ) }
Init the export and direction files \
Created to be called in the constructor, could not be called by the
user
Init the export and direction files \ Created to be called in the constructor could not be called by the user
&self
&self