Lines Matching refs:BatStatus
670 pub enum BatStatus { enum
678 impl BatStatus { impl
681 "unknown" => Ok(BatStatus::Unknown), in new()
682 "charging" => Ok(BatStatus::Charging), in new()
683 "discharging" => Ok(BatStatus::DisCharging), in new()
684 "notcharging" => Ok(BatStatus::NotCharging), in new()
685 "full" => Ok(BatStatus::Full), in new()
691 impl FromStr for BatStatus { implementation
696 "unknown" => Ok(BatStatus::Unknown), in from_str()
697 "charging" => Ok(BatStatus::Charging), in from_str()
698 "discharging" => Ok(BatStatus::DisCharging), in from_str()
699 "notcharging" => Ok(BatStatus::NotCharging), in from_str()
700 "full" => Ok(BatStatus::Full), in from_str()
706 impl From<BatStatus> for u32 {
707 fn from(status: BatStatus) -> Self { in from()
754 SetStatus(BatStatus),
765 BatProperty::Status => Ok(BatControlCommand::SetStatus(target.parse::<BatStatus>()?)), in new()