Lines Matching refs:BatProperty
646 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()
767 BatProperty::Present => Ok(BatControlCommand::SetPresent( in new()
772 BatProperty::Capacity => Ok(BatControlCommand::SetCapacity( in new()
777 BatProperty::ACOnline => Ok(BatControlCommand::SetACOnline( in new()