Enum nut_client::tokio::Connection[][src]

pub enum Connection {
    Tcp(TcpConnection),
}
Expand description

An async NUT client connection.

Variants

Tcp

A TCP connection.

Tuple Fields of Tcp

0: TcpConnection

Implementations

Initializes a connection to a NUT server (upsd).

Gracefully closes the connection.

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.

Queries the possible ranges of a UPS variable.

Queries the possible enum values of a UPS variable.

Queries one variable for a UPS device.

Queries the description of a UPS variable.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.