mirror of
https://github.com/aramperes/nut-rs.git
synced 2025-09-08 21:18:31 -04:00
Rename list_mutable_variables to list_mutabe_vars for consistency
This commit is contained in:
parent
0e18b57624
commit
ea8ecdbf0c
3 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ async fn main() -> nut_client::Result<()> {
|
||||||
println!("\t Description: {}", description);
|
println!("\t Description: {}", description);
|
||||||
|
|
||||||
// Get list of mutable variables
|
// Get list of mutable variables
|
||||||
let mutable_vars = conn.list_mutable_variables(&name).await?;
|
let mutable_vars = conn.list_mutable_vars(&name).await?;
|
||||||
|
|
||||||
// List UPS variables (key = val)
|
// List UPS variables (key = val)
|
||||||
println!("\t Mutable Variables:");
|
println!("\t Mutable Variables:");
|
||||||
|
|
|
@ -36,7 +36,7 @@ fn main() -> nut_client::Result<()> {
|
||||||
println!("\t Description: {}", description);
|
println!("\t Description: {}", description);
|
||||||
|
|
||||||
// Get list of mutable variables
|
// Get list of mutable variables
|
||||||
let mutable_vars = conn.list_mutable_variables(&name)?;
|
let mutable_vars = conn.list_mutable_vars(&name)?;
|
||||||
|
|
||||||
// List UPS variables (key = val)
|
// List UPS variables (key = val)
|
||||||
println!("\t Mutable Variables:");
|
println!("\t Mutable Variables:");
|
||||||
|
|
|
@ -569,7 +569,7 @@ implement_list_commands! {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Queries the list of mutable variables for a UPS device.
|
/// Queries the list of mutable variables for a UPS device.
|
||||||
pub fn list_mutable_variables(ups_name: &str) -> Vec<Variable> {
|
pub fn list_mutable_vars(ups_name: &str) -> Vec<Variable> {
|
||||||
(
|
(
|
||||||
{ &["RW", ups_name] },
|
{ &["RW", ups_name] },
|
||||||
{ |row: Response| row.expect_rw() },
|
{ |row: Response| row.expect_rw() },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue