#[repr(C)]pub struct ProcessorPowerLevelTransition {
pub latency: Duration,
pub energy_nj: u64,
pub from: u8,
pub to: u8,
pub reserved: [u8; 6],
}Fields§
§latency: Duration§energy_nj: u64§from: u8§to: u8§reserved: [u8; 6]Trait Implementations§
Source§impl Clone for ProcessorPowerLevelTransition
impl Clone for ProcessorPowerLevelTransition
Source§fn clone(&self) -> ProcessorPowerLevelTransition
fn clone(&self) -> ProcessorPowerLevelTransition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FromBytes for ProcessorPowerLevelTransition
impl FromBytes for ProcessorPowerLevelTransition
Source§impl PartialEq for ProcessorPowerLevelTransition
impl PartialEq for ProcessorPowerLevelTransition
Source§fn eq(&self, other: &ProcessorPowerLevelTransition) -> bool
fn eq(&self, other: &ProcessorPowerLevelTransition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFromBytes for ProcessorPowerLevelTransition
impl TryFromBytes for ProcessorPowerLevelTransition
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for ProcessorPowerLevelTransition
impl Eq for ProcessorPowerLevelTransition
impl StructuralPartialEq for ProcessorPowerLevelTransition
Auto Trait Implementations§
impl Freeze for ProcessorPowerLevelTransition
impl RefUnwindSafe for ProcessorPowerLevelTransition
impl Send for ProcessorPowerLevelTransition
impl Sync for ProcessorPowerLevelTransition
impl Unpin for ProcessorPowerLevelTransition
impl UnwindSafe for ProcessorPowerLevelTransition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more