Struct yamaha_avr::yamaha::YamahaAvr
[−]
[src]
pub struct YamahaAvr { /* fields omitted */ }
Methods
impl YamahaAvr
[src]
fn new(ip: String) -> YamahaAvr
[src]
fn get_basic_info(&mut self) -> Result<BasicInfo, Error>
[src]
fn get_power(&mut self) -> Result<bool>
[src]
fn set_power(&mut self, value: bool) -> Result<()>
[src]
fn get_mute(&mut self) -> Result<bool>
[src]
fn set_mute(&mut self, value: bool) -> Result<()>
[src]
fn get_volume(&mut self) -> Result<i32>
[src]
fn set_volume(&mut self, value: i32) -> Result<()>
[src]
fn select_input(&mut self, input: String, zone: Option<&str>) -> Result<()>
[src]
Select a Input for the given Zone or Main_Zone when zone is None.
Does nothing when Input is not available
Arguments
input
- The Input to selectzone
- The Zone in which the input should be selected. Defaults to Main_Zone