Struct powercap::Socket[][src]

pub struct Socket {
    pub id: u8,
    pub domains: HashMap<u8, Domain>,
    // some fields omitted
}

Fields

id: u8

id of the current socket.

domains: HashMap<u8, Domain>

domains of the current socket.

Implementations

Returns wether the socket is enabled or not.

Returns amount of energy used by the socket. The returned value is in micro joules.

Returns the sum of energy used by the sockets and the domains. The returned value is in micro joules.

Trait Implementations

Formats the value using the given formatter. Read more

Creates a socket instance using the speficied path.

The type returned in the event of a conversion error.

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.