fn alert(&self, color: Color) -> Result<()> {
        info!("Alerting...");
        let alert = Alert::LSelect;
        let duration = 15;
        for id in self.light_ids.clone() {
            let bridge = self.bridge.clone();
            thread::spawn(move || {
                Hue::notify(
                    bridge.to_owned(),
                    &id.to_owned(),
                    alert.to_owned(),
                    color.to_owned(),
                    duration.to_owned(),
                )
                .unwrap()
            });
        }
        debug!("Done.");
        Ok(())
    }
/// Show alert with the configured light.
///
/// This a longer notification (change color, blink for 15 seconds, then
/// put back initial configuration).
Show alert with the configured light.
This a longer notification (change color, blink for 15 seconds, then
put back initial configuration).
Show alert with the configured light . This a longer notification ( change color blink for 15 seconds then put back initial configuration ) .
fn alert(&self, color: Color) -> Result<()> {
        info!("Alerting...");
        let alert = Alert::LSelect;
        let duration = 15;
        for id in self.light_ids.clone() {
            let bridge = self.bridge.clone();
            thread::spawn(move || {
                Hue::notify(
                    bridge.to_owned(),
                    &id.to_owned(),
                    alert.to_owned(),
                    color.to_owned(),
                    duration.to_owned(),
                )
                .unwrap()
            });
        }
        debug!("Done.");
        Ok(())
    }
fn alert ( & self , color : Color ) -> Result < ( ) > { info ! ( " " ) ; let alert = Alert :: LSelect ; let duration = 15 ; for id in self . light_ids . clone ( ) { let bridge = self . bridge . clone ( ) ; thread :: spawn ( move | | { Hue :: notify ( bridge . to_owned ( ) , & id . to_owned ( ) , alert . to_owned ( ) , color . to_owned ( ) , duration . to_owned ( ) , ) . unwrap ( ) } ) ; } debug ! ( " " ) ; Ok ( ( ) ) }
Show alert with the configured light.
Show alert with the configured light .
&self
color
Color