Enum nut_client::Variable [−][src]
pub enum Variable { DeviceModel(String), DeviceManufacturer(String), DeviceSerial(String), DeviceType(DeviceType), DeviceDescription(String), DeviceContact(String), DeviceLocation(String), DevicePart(String), DeviceMacAddress(String), DeviceUptime(Duration), Other((String, String)), }
Expand description
Well-known variables for NUT UPS devices.
List retrieved from: https://networkupstools.org/docs/user-manual.chunked/apcs01.html
Variants
Device model.
Tuple Fields of DeviceModel
0: String
Device manufacturer.
Tuple Fields of DeviceManufacturer
0: String
Device serial number.
Tuple Fields of DeviceSerial
0: String
Device type.
Tuple Fields of DeviceType
0: DeviceType
Device description.
Tuple Fields of DeviceDescription
0: String
Device administrator name.
Tuple Fields of DeviceContact
0: String
Device physical location.
Tuple Fields of DeviceLocation
0: String
Device part number.
Tuple Fields of DevicePart
0: String
Device MAC address.
Tuple Fields of DeviceMacAddress
0: String
Device uptime.
Tuple Fields of DeviceUptime
0: Duration
Any other variable. Value is a tuple of (key, value).
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Variable
impl UnwindSafe for Variable
Blanket Implementations
Mutably borrows from an owned value. Read more