Searched refs:BatControlCommand (Results 1 – 3 of 3) sorted by relevance
15 use vm_control::{BatControlCommand, BatControlResult};214 BatControlCommand::SetStatus(status) => bat_state.set_status(status.into()), in command_monitor()215 BatControlCommand::SetHealth(health) => bat_state.set_health(health.into()), in command_monitor()216 BatControlCommand::SetPresent(present) => { in command_monitor()220 BatControlCommand::SetCapacity(capacity) => { in command_monitor()224 BatControlCommand::SetACOnline(ac_online) => { in command_monitor()
753 pub enum BatControlCommand { enum761 impl BatControlCommand { implementation765 BatProperty::Status => Ok(BatControlCommand::SetStatus(target.parse::<BatStatus>()?)), in new()766 BatProperty::Health => Ok(BatControlCommand::SetHealth(target.parse::<BatHealth>()?)), in new()767 BatProperty::Present => Ok(BatControlCommand::SetPresent( in new()772 BatProperty::Capacity => Ok(BatControlCommand::SetCapacity( in new()777 BatProperty::ACOnline => Ok(BatControlCommand::SetACOnline( in new()919 BatCommand(BatteryType, BatControlCommand),
160 Ok(type_) => match BatControlCommand::new(property.to_string(), target.to_string()) { in do_modify_battery()