pub struct WorkloadUtilization { /* private fields */ }
Implementations§
Source§impl WorkloadUtilization
impl WorkloadUtilization
Sourcepub const fn into_bytes(self) -> [u8; 6]
pub const fn into_bytes(self) -> [u8; 6]
Sourcepub const fn from_bytes(bytes: [u8; 6]) -> Self
pub const fn from_bytes(bytes: [u8; 6]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl WorkloadUtilization
impl WorkloadUtilization
Sourcepub fn header(&self) -> <ParameterHeader as Specifier>::InOut
pub fn header(&self) -> <ParameterHeader as Specifier>::InOut
Returns the value of header.
Sourcepub fn header_or_err(
&self,
) -> Result<<ParameterHeader as Specifier>::InOut, InvalidBitPattern<<ParameterHeader as Specifier>::Bytes>>
pub fn header_or_err( &self, ) -> Result<<ParameterHeader as Specifier>::InOut, InvalidBitPattern<<ParameterHeader as Specifier>::Bytes>>
Returns the value of header.
#Errors
If the returned value contains an invalid bit pattern for header.
Sourcepub fn with_header(self, new_val: <ParameterHeader as Specifier>::InOut) -> Self
pub fn with_header(self, new_val: <ParameterHeader as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of header set to the given value.
#Panics
If the given value is out of bounds for header.
Sourcepub fn with_header_checked(
self,
new_val: <ParameterHeader as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_header_checked( self, new_val: <ParameterHeader as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of header set to the given value.
#Errors
If the given value is out of bounds for header.
Sourcepub fn set_header(&mut self, new_val: <ParameterHeader as Specifier>::InOut)
pub fn set_header(&mut self, new_val: <ParameterHeader as Specifier>::InOut)
Sets the value of header to the given value.
#Panics
If the given value is out of bounds for header.
Sourcepub fn set_header_checked(
&mut self,
new_val: <ParameterHeader as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_header_checked( &mut self, new_val: <ParameterHeader as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of header to the given value.
#Errors
If the given value is out of bounds for header.
Sourcepub fn workload_utilization(&self) -> <B16 as Specifier>::InOut
pub fn workload_utilization(&self) -> <B16 as Specifier>::InOut
Returns the value of workload_utilization.
Sourcepub fn workload_utilization_or_err(
&self,
) -> Result<<B16 as Specifier>::InOut, InvalidBitPattern<<B16 as Specifier>::Bytes>>
pub fn workload_utilization_or_err( &self, ) -> Result<<B16 as Specifier>::InOut, InvalidBitPattern<<B16 as Specifier>::Bytes>>
Returns the value of workload_utilization.
#Errors
If the returned value contains an invalid bit pattern for workload_utilization.
Sourcepub fn with_workload_utilization(
self,
new_val: <B16 as Specifier>::InOut,
) -> Self
pub fn with_workload_utilization( self, new_val: <B16 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of workload_utilization set to the given value.
#Panics
If the given value is out of bounds for workload_utilization.
Sourcepub fn with_workload_utilization_checked(
self,
new_val: <B16 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_workload_utilization_checked( self, new_val: <B16 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of workload_utilization set to the given value.
#Errors
If the given value is out of bounds for workload_utilization.
Sourcepub fn set_workload_utilization(&mut self, new_val: <B16 as Specifier>::InOut)
pub fn set_workload_utilization(&mut self, new_val: <B16 as Specifier>::InOut)
Sets the value of workload_utilization to the given value.
#Panics
If the given value is out of bounds for workload_utilization.
Sourcepub fn set_workload_utilization_checked(
&mut self,
new_val: <B16 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_workload_utilization_checked( &mut self, new_val: <B16 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of workload_utilization to the given value.
#Errors
If the given value is out of bounds for workload_utilization.
Trait Implementations§
Source§impl Clone for WorkloadUtilization
impl Clone for WorkloadUtilization
Source§fn clone(&self) -> WorkloadUtilization
fn clone(&self) -> WorkloadUtilization
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more