Searched refs:BatProperty (Results 1 – 1 of 1) sorted by relevance
646 pub enum BatProperty { enum654 impl FromStr for BatProperty { implementation659 "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 …]