Struct nvme::nvm::WriteDword13
source · pub struct WriteDword13 { /* private fields */ }
Implementations§
source§impl WriteDword13
impl WriteDword13
source§impl WriteDword13
impl WriteDword13
sourcepub const fn into_bytes(self) -> [u8; 4]
pub const fn into_bytes(self) -> [u8; 4]
sourcepub const fn from_bytes(bytes: [u8; 4]) -> Self
pub const fn from_bytes(bytes: [u8; 4]) -> Self
Converts the given bytes directly into the bitfield struct.
source§impl WriteDword13
impl WriteDword13
sourcepub fn access_frequency(&self) -> <AccessFrequency as Specifier>::InOut
pub fn access_frequency(&self) -> <AccessFrequency as Specifier>::InOut
Returns the value of access_frequency.
sourcepub fn access_frequency_or_err(
&self
) -> Result<<AccessFrequency as Specifier>::InOut, InvalidBitPattern<<AccessFrequency as Specifier>::Bytes>>
pub fn access_frequency_or_err( &self ) -> Result<<AccessFrequency as Specifier>::InOut, InvalidBitPattern<<AccessFrequency as Specifier>::Bytes>>
Returns the value of access_frequency.
#Errors
If the returned value contains an invalid bit pattern for access_frequency.
sourcepub fn with_access_frequency(
self,
new_val: <AccessFrequency as Specifier>::InOut
) -> Self
pub fn with_access_frequency( self, new_val: <AccessFrequency as Specifier>::InOut ) -> Self
Returns a copy of the bitfield with the value of access_frequency set to the given value.
#Panics
If the given value is out of bounds for access_frequency.
sourcepub fn with_access_frequency_checked(
self,
new_val: <AccessFrequency as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_access_frequency_checked( self, new_val: <AccessFrequency as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of access_frequency set to the given value.
#Errors
If the given value is out of bounds for access_frequency.
sourcepub fn set_access_frequency(
&mut self,
new_val: <AccessFrequency as Specifier>::InOut
)
pub fn set_access_frequency( &mut self, new_val: <AccessFrequency as Specifier>::InOut )
Sets the value of access_frequency to the given value.
#Panics
If the given value is out of bounds for access_frequency.
sourcepub fn set_access_frequency_checked(
&mut self,
new_val: <AccessFrequency as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_access_frequency_checked( &mut self, new_val: <AccessFrequency as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of access_frequency to the given value.
#Errors
If the given value is out of bounds for access_frequency.
sourcepub fn access_latency(&self) -> <AccessLatency as Specifier>::InOut
pub fn access_latency(&self) -> <AccessLatency as Specifier>::InOut
Returns the value of access_latency.
sourcepub fn access_latency_or_err(
&self
) -> Result<<AccessLatency as Specifier>::InOut, InvalidBitPattern<<AccessLatency as Specifier>::Bytes>>
pub fn access_latency_or_err( &self ) -> Result<<AccessLatency as Specifier>::InOut, InvalidBitPattern<<AccessLatency as Specifier>::Bytes>>
Returns the value of access_latency.
#Errors
If the returned value contains an invalid bit pattern for access_latency.
sourcepub fn with_access_latency(
self,
new_val: <AccessLatency as Specifier>::InOut
) -> Self
pub fn with_access_latency( self, new_val: <AccessLatency as Specifier>::InOut ) -> Self
Returns a copy of the bitfield with the value of access_latency set to the given value.
#Panics
If the given value is out of bounds for access_latency.
sourcepub fn with_access_latency_checked(
self,
new_val: <AccessLatency as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_access_latency_checked( self, new_val: <AccessLatency as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of access_latency set to the given value.
#Errors
If the given value is out of bounds for access_latency.
sourcepub fn set_access_latency(
&mut self,
new_val: <AccessLatency as Specifier>::InOut
)
pub fn set_access_latency( &mut self, new_val: <AccessLatency as Specifier>::InOut )
Sets the value of access_latency to the given value.
#Panics
If the given value is out of bounds for access_latency.
sourcepub fn set_access_latency_checked(
&mut self,
new_val: <AccessLatency as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_access_latency_checked( &mut self, new_val: <AccessLatency as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of access_latency to the given value.
#Errors
If the given value is out of bounds for access_latency.
sourcepub fn sequenial_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn sequenial_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of sequenial.
#Errors
If the returned value contains an invalid bit pattern for sequenial.
sourcepub fn with_sequenial(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_sequenial(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of sequenial set to the given value.
#Panics
If the given value is out of bounds for sequenial.
sourcepub fn with_sequenial_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_sequenial_checked( self, new_val: <bool as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of sequenial set to the given value.
#Errors
If the given value is out of bounds for sequenial.
sourcepub fn set_sequenial(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_sequenial(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of sequenial to the given value.
#Panics
If the given value is out of bounds for sequenial.
sourcepub fn set_sequenial_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_sequenial_checked( &mut self, new_val: <bool as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of sequenial to the given value.
#Errors
If the given value is out of bounds for sequenial.
sourcepub fn incompressable(&self) -> <bool as Specifier>::InOut
pub fn incompressable(&self) -> <bool as Specifier>::InOut
Returns the value of incompressable.
sourcepub fn incompressable_or_err(
&self
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn incompressable_or_err( &self ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of incompressable.
#Errors
If the returned value contains an invalid bit pattern for incompressable.
sourcepub fn with_incompressable(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_incompressable(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of incompressable set to the given value.
#Panics
If the given value is out of bounds for incompressable.
sourcepub fn with_incompressable_checked(
self,
new_val: <bool as Specifier>::InOut
) -> Result<Self, OutOfBounds>
pub fn with_incompressable_checked( self, new_val: <bool as Specifier>::InOut ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of incompressable set to the given value.
#Errors
If the given value is out of bounds for incompressable.
sourcepub fn set_incompressable(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_incompressable(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of incompressable to the given value.
#Panics
If the given value is out of bounds for incompressable.
sourcepub fn set_incompressable_checked(
&mut self,
new_val: <bool as Specifier>::InOut
) -> Result<(), OutOfBounds>
pub fn set_incompressable_checked( &mut self, new_val: <bool as Specifier>::InOut ) -> Result<(), OutOfBounds>
Sets the value of incompressable to the given value.
#Errors
If the given value is out of bounds for incompressable.
Trait Implementations§
source§impl Clone for WriteDword13
impl Clone for WriteDword13
source§fn clone(&self) -> WriteDword13
fn clone(&self) -> WriteDword13
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more