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: StringDevice manufacturer.
Tuple Fields of DeviceManufacturer
0: StringDevice serial number.
Tuple Fields of DeviceSerial
0: StringDevice type.
Tuple Fields of DeviceType
0: DeviceTypeDevice description.
Tuple Fields of DeviceDescription
0: StringDevice administrator name.
Tuple Fields of DeviceContact
0: StringDevice physical location.
Tuple Fields of DeviceLocation
0: StringDevice part number.
Tuple Fields of DevicePart
0: StringDevice MAC address.
Tuple Fields of DeviceMacAddress
0: StringDevice uptime.
Tuple Fields of DeviceUptime
0: DurationAny 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