Enum nut_client::tokio::Connection [−][src]
pub enum Connection { Tcp(TcpConnection), }
Expand description
An async NUT client connection.
Variants
A TCP connection.
Tuple Fields of Tcp
Implementations
Queries a list of UPS devices.
Queries the list of client IP addresses connected to the given device.
Queries the list of variables for a UPS device.
Queries the list of mutable variables for a UPS device.
Queries the list of commands available for the given device.
pub async fn list_var_range(
&mut self,
ups_name: &str,
variable: &str
) -> Result<Vec<VariableRange>>
pub async fn list_var_range(
&mut self,
ups_name: &str,
variable: &str
) -> Result<Vec<VariableRange>>
Queries the possible ranges of a UPS variable.
Queries one variable for a UPS device.
Queries the description of a UPS variable.
pub async fn get_var_type(
&mut self,
ups_name: &str,
variable: &str
) -> Result<VariableDefinition>
pub async fn get_var_type(
&mut self,
ups_name: &str,
variable: &str
) -> Result<VariableDefinition>
Queries the type of a UPS variable.
Queries the description of a UPS command.
Queries the description of a UPS device.
Queries the number of logins to the specified UPS.
Queries the network protocol version.
Queries the server NUT version.