Home
last modified time | relevance | path

Searched refs:BatProperty (Results 1 – 1 of 1) sorted by relevance

/external/crosvm/vm_control/src/
Dlib.rs646 pub enum BatProperty { enum
654 impl FromStr for BatProperty { implementation
659 "status" => Ok(BatProperty::Status), in from_str()
660 "health" => Ok(BatProperty::Health), in from_str()
661 "present" => Ok(BatProperty::Present), in from_str()
662 "capacity" => Ok(BatProperty::Capacity), in from_str()
663 "aconline" => Ok(BatProperty::ACOnline), in from_str()
763 let cmd = property.parse::<BatProperty>()?; in new()
765 BatProperty::Status => Ok(BatControlCommand::SetStatus(target.parse::<BatStatus>()?)), in new()
766 BatProperty::Health => Ok(BatControlCommand::SetHealth(target.parse::<BatHealth>()?)), in new()
[all …]