pub struct Socket {
pub id: u8,
pub domains: HashMap<u8, Domain>,
// some fields omitted
}
id of the current socket.
domains: HashMap<u8, Domain>domains of the current socket.
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.
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.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.