[][src]Trait huelib::resource::Scanner

pub trait Scanner: Serialize {
    pub fn url_suffix() -> String;

    pub fn execute(&self, bridge: &Bridge) -> Result<()> { ... }
}

Trait for scanning new resources.

Required methods

pub fn url_suffix() -> String[src]

Returns the suffix of the API URL.

Loading content...

Provided methods

pub fn execute(&self, bridge: &Bridge) -> Result<()>[src]

Sends the request to scan for new resources.

Loading content...

Implementors

impl Scanner for huelib::resource::light::Scanner[src]

impl Scanner for huelib::resource::sensor::Scanner[src]

Loading content...