[][src]Function hap::accessory::switch::new

pub fn new(information: Information) -> Result<Switch, Error>

Creates a new Switch Accessory.