Enum sysfuss::PowerSupplyAttribute
source · pub enum PowerSupplyAttribute {
Show 38 variants
Manufacturer,
ModelName,
SerialNumber,
Type,
CurrentAverage,
CurrentMax,
CurrentNow,
Temperature,
TemperatureAlertMax,
TemperatureAlertMin,
TemperatureMax,
TemperatureMin,
VoltageMax,
VoltageMin,
VoltageNow,
Capacity,
CapacityAlertMax,
CapacityAlertMin,
CapacityErrorMargin,
CapacityLevel,
ChargeControlLimit,
ChargeControlLimitMax,
ChargeControlStartThreshold,
ChargeControlEndThreshold,
ChargeType,
ChargeTermCurrent,
ChargeNow,
ChargeFull,
ChargeFullDesign,
Health,
PrechargeCurrent,
Present,
Status,
ChargeBehaviour,
Technology,
VoltageAverage,
CycleCount,
Custom(&'static str),
}Expand description
Attribute files in a power supply directory These attributes are taken from https://github.com/torvalds/linux/blob/master/Documentation/ABI/testing/sysfs-class-power
Variants§
Manufacturer
Reports the name of the device manufacturer.
ModelName
Reports the name of the device model.
SerialNumber
Reports the serial number of the device.
Type
Describes the main type of the supply.
CurrentAverage
Reports an average current reading over a fixed period (uA).
CurrentMax
Reports the maximum current the power supply supports (uA).
CurrentNow
Reports the instantaneous current of the power supply (uA).
Temperature
Reports the temperature reading (dC – 1/10 degree Celcius).
TemperatureAlertMax
Maximum temperature where the supply will notify user-space of the event (dC).
TemperatureAlertMin
Minimum temperature where the supply will notify user-space of the event (dC).
TemperatureMax
Reports the maximum allowed temperature for operation (dC).
TemperatureMin
Reports the minimum allowed temperature for operation (dC).
VoltageMax
Reports the maximum safe voltage (uV).
VoltageMin
Reports the minimum safe voltage (uV).
VoltageNow
Reports the instantaneous voltage of the power supply (uV).
Capacity
Fine grain representation of the battery capacity (%).
CapacityAlertMax
Maximum battery capacity trip-wire value where the supply will notify user-space of the event (%).
CapacityAlertMin
Minimum battery capacity trip-wire value where the supply will notify user-space of the event (%).
CapacityErrorMargin
This values provides the maximum error margin expected to exist by the fuel gauge in percent (%).
CapacityLevel
Coarse representation of battery capacity (“Unknown”, “Critical”, “Low”, “Normal”, “High”, or “Full”).
ChargeControlLimit
Maximum allowable charging current (uA).
ChargeControlLimitMax
Maximum legal value for the charge_control_limit property (uA).
ChargeControlStartThreshold
Represents a battery percentage level, below which charging will begin (%).
ChargeControlEndThreshold
Represents a battery percentage level, above which charging will stop (%).
ChargeType
Represents the type of charging currently being applied to the battery (“Unknown”, “N/A”, “Trickle”, “Fast”, “Standard”, “Adaptive”, “Custom”, “Long Life”, or “Bypass”).
ChargeTermCurrent
Reports the charging current value which is used to determine when the battery is considered full and charging should end (uA).
ChargeNow
Reports the instantaneous charge value of the power supply (uA).
ChargeFull
Reports the maximum charge value of the power supply (uA).
ChargeFullDesign
Reports the maximum rated charge value of the power supply (uA).
Health
Reports the health of the battery or battery side of charger functionality ( “Unknown”, “Good”, “Overheat”, “Dead”, “Over voltage”, “Unspecified failure”, “Cold”, “Watchdog timer expire”, “Safety timer expire”, “Over current”, “Calibration required”, “Warm”, “Cool”, “Hot”, or “No battery”).
PrechargeCurrent
Reports the charging current applied during pre-charging phase for a battery charge cycle (uA).
Present
Reports whether a battery is present or not in the system (0 or 1). If the property does not exist, the battery is considered to be present.
Status
Represents the charging status of the battery ( “Unknown”, “Charging”, “Discharging”, “Not charging”, or “Full”).
ChargeBehaviour
Represents the charging behaviour (“auto”, “inhibit-charge”, or “force-discharge”).
Technology
Describes the battery technology supported by the supply.
VoltageAverage
Reports an average voltage over a fixed period (uV).
CycleCount
Reports the number of full charge + discharge cycles the battery has undergone.
Custom(&'static str)
Custom entity attribute
Trait Implementations§
source§impl Clone for PowerSupplyAttribute
impl Clone for PowerSupplyAttribute
source§fn clone(&self) -> PowerSupplyAttribute
fn clone(&self) -> PowerSupplyAttribute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq<PowerSupplyAttribute> for PowerSupplyAttribute
impl PartialEq<PowerSupplyAttribute> for PowerSupplyAttribute
source§fn eq(&self, other: &PowerSupplyAttribute) -> bool
fn eq(&self, other: &PowerSupplyAttribute) -> bool
self and other values to be equal, and is used
by ==.