pub struct Core { /* fields omitted */ }
Representation of the current cpufrequency serttings of a single core
Can be obtained by running discover_core_settings
discover settings for the core specified by its path
returns the number of the core
returns cpu minimum frequency in kHz
returns cpu maximum frequency in kHz
returns current min scaling frequency in kHz
returns current max scaling frequency in kHz
returns the current governor
returns available governors
Validate the given minimum value. Must be >= the discovered CPU frequency minimum
Validate the given maximum value. Must be >= current min and <= CPU frequency maximum
Validate the governor by checking against the list of available governors
Set the minimum scaling frequency (lower frequency limit)
This operation is not checked by mediocore, but the kernel may refuse to accept certain inputs.
Use Core::validate_min on the value beforehand.
Set the maximum scaling frequency (lower frequency limit)
This operation is not checked by mediocore, but the kernel may refuse to accept certain inputs.
Use Core::validate_max on the value beforehand.
Apply the given governor
This operation is not checked by mediocore, but the kernel may refuse to accept certain inputs.
Use Core::validate_governor on the value beforehand.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static