Struct powercap::Domain[][src]

pub struct Domain {
    pub id: u8,
    // some fields omitted
}

Fields

id: u8

id of the current domain.

Implementations

Returns the name of the current domain.

Returns wether the socket is enabled or not.

Returns amount of energy used by the socket. 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.

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.