mirror of
https://github.com/aramperes/nut-rs.git
synced 2025-09-10 05:44:03 -04:00
parent
b6e3a96aa1
commit
0e18b57624
4 changed files with 72 additions and 4 deletions
|
@ -30,7 +30,7 @@ pub mod key {
|
|||
/// Well-known variables for NUT UPS devices.
|
||||
///
|
||||
/// List retrieved from: https://networkupstools.org/docs/user-manual.chunked/apcs01.html
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
pub enum Variable {
|
||||
/// Device model.
|
||||
DeviceModel(String),
|
||||
|
@ -123,7 +123,7 @@ impl fmt::Display for Variable {
|
|||
}
|
||||
|
||||
/// NUT device type.
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
pub enum DeviceType {
|
||||
/// UPS (Uninterruptible Power Supply)
|
||||
Ups,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue