Crate nut_client

Source
Expand description

§nut-client

The nut-client crate provides a network client implementation for Network UPS Tools (NUT) servers.

Modules§

blocking
Blocking client implementation for NUT.
key
Well-known variable keys for NUT UPS devices.
tokio
Async client implementation for NUT, using Tokio.

Structs§

Auth
An authentication mechanism.
Config
Configuration for connecting to a remote NUT server.
ConfigBuilder
A builder for Config.
TcpHost
A TCP address, preserving the original DNS hostname if any.
VariableDefinition
NUT Variable definition.
VariableRange
A range of values for a variable.

Enums§

ClientError
Encapsulation for errors emitted by the client library.
DeviceType
NUT device type.
Host
A host specification.
NutError
A NUT-native error.
Variable
Well-known variables for NUT UPS devices.

Type Aliases§

Result
Result type for ClientError