pub struct ReadWriteErrorRecoveryPage { /* private fields */ }
Implementations§
Source§impl ReadWriteErrorRecoveryPage
impl ReadWriteErrorRecoveryPage
Sourcepub const fn into_bytes(self) -> [u8; 12]
pub const fn into_bytes(self) -> [u8; 12]
Sourcepub const fn from_bytes(bytes: [u8; 12]) -> Self
pub const fn from_bytes(bytes: [u8; 12]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl ReadWriteErrorRecoveryPage
impl ReadWriteErrorRecoveryPage
Sourcepub fn parameters_saveable(&self) -> <B1 as Specifier>::InOut
pub fn parameters_saveable(&self) -> <B1 as Specifier>::InOut
Returns the value of parameters_saveable.
Sourcepub fn parameters_saveable_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn parameters_saveable_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of parameters_saveable.
#Errors
If the returned value contains an invalid bit pattern for parameters_saveable.
Sourcepub fn with_parameters_saveable(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_parameters_saveable(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of parameters_saveable set to the given value.
#Panics
If the given value is out of bounds for parameters_saveable.
Sourcepub fn with_parameters_saveable_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_parameters_saveable_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of parameters_saveable set to the given value.
#Errors
If the given value is out of bounds for parameters_saveable.
Sourcepub fn set_parameters_saveable(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_parameters_saveable(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of parameters_saveable to the given value.
#Panics
If the given value is out of bounds for parameters_saveable.
Sourcepub fn set_parameters_saveable_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_parameters_saveable_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of parameters_saveable to the given value.
#Errors
If the given value is out of bounds for parameters_saveable.
Sourcepub fn subpage_format(&self) -> <B1 as Specifier>::InOut
pub fn subpage_format(&self) -> <B1 as Specifier>::InOut
Returns the value of subpage_format.
Sourcepub fn subpage_format_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn subpage_format_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of subpage_format.
#Errors
If the returned value contains an invalid bit pattern for subpage_format.
Sourcepub fn with_subpage_format(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_subpage_format(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of subpage_format set to the given value.
#Panics
If the given value is out of bounds for subpage_format.
Sourcepub fn with_subpage_format_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_subpage_format_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of subpage_format set to the given value.
#Errors
If the given value is out of bounds for subpage_format.
Sourcepub fn set_subpage_format(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_subpage_format(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of subpage_format to the given value.
#Panics
If the given value is out of bounds for subpage_format.
Sourcepub fn set_subpage_format_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_subpage_format_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of subpage_format to the given value.
#Errors
If the given value is out of bounds for subpage_format.
Sourcepub fn page_code_or_err(
&self,
) -> Result<<B6 as Specifier>::InOut, InvalidBitPattern<<B6 as Specifier>::Bytes>>
pub fn page_code_or_err( &self, ) -> Result<<B6 as Specifier>::InOut, InvalidBitPattern<<B6 as Specifier>::Bytes>>
Returns the value of page_code.
#Errors
If the returned value contains an invalid bit pattern for page_code.
Sourcepub fn with_page_code(self, new_val: <B6 as Specifier>::InOut) -> Self
pub fn with_page_code(self, new_val: <B6 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of page_code set to the given value.
#Panics
If the given value is out of bounds for page_code.
Sourcepub fn with_page_code_checked(
self,
new_val: <B6 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_page_code_checked( self, new_val: <B6 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of page_code set to the given value.
#Errors
If the given value is out of bounds for page_code.
Sourcepub fn set_page_code(&mut self, new_val: <B6 as Specifier>::InOut)
pub fn set_page_code(&mut self, new_val: <B6 as Specifier>::InOut)
Sets the value of page_code to the given value.
#Panics
If the given value is out of bounds for page_code.
Sourcepub fn set_page_code_checked(
&mut self,
new_val: <B6 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_page_code_checked( &mut self, new_val: <B6 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of page_code to the given value.
#Errors
If the given value is out of bounds for page_code.
Sourcepub fn page_length(&self) -> <B8 as Specifier>::InOut
pub fn page_length(&self) -> <B8 as Specifier>::InOut
Returns the value of page_length.
Sourcepub fn page_length_or_err(
&self,
) -> Result<<B8 as Specifier>::InOut, InvalidBitPattern<<B8 as Specifier>::Bytes>>
pub fn page_length_or_err( &self, ) -> Result<<B8 as Specifier>::InOut, InvalidBitPattern<<B8 as Specifier>::Bytes>>
Returns the value of page_length.
#Errors
If the returned value contains an invalid bit pattern for page_length.
Sourcepub fn with_page_length(self, new_val: <B8 as Specifier>::InOut) -> Self
pub fn with_page_length(self, new_val: <B8 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of page_length set to the given value.
#Panics
If the given value is out of bounds for page_length.
Sourcepub fn with_page_length_checked(
self,
new_val: <B8 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_page_length_checked( self, new_val: <B8 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of page_length set to the given value.
#Errors
If the given value is out of bounds for page_length.
Sourcepub fn set_page_length(&mut self, new_val: <B8 as Specifier>::InOut)
pub fn set_page_length(&mut self, new_val: <B8 as Specifier>::InOut)
Sets the value of page_length to the given value.
#Panics
If the given value is out of bounds for page_length.
Sourcepub fn set_page_length_checked(
&mut self,
new_val: <B8 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_page_length_checked( &mut self, new_val: <B8 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of page_length to the given value.
#Errors
If the given value is out of bounds for page_length.
Sourcepub fn automatic_write_reallocation_enabled(&self) -> <B1 as Specifier>::InOut
pub fn automatic_write_reallocation_enabled(&self) -> <B1 as Specifier>::InOut
Returns the value of automatic_write_reallocation_enabled.
Sourcepub fn automatic_write_reallocation_enabled_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn automatic_write_reallocation_enabled_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of automatic_write_reallocation_enabled.
#Errors
If the returned value contains an invalid bit pattern for automatic_write_reallocation_enabled.
Sourcepub fn with_automatic_write_reallocation_enabled(
self,
new_val: <B1 as Specifier>::InOut,
) -> Self
pub fn with_automatic_write_reallocation_enabled( self, new_val: <B1 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of automatic_write_reallocation_enabled set to the given value.
#Panics
If the given value is out of bounds for automatic_write_reallocation_enabled.
Sourcepub fn with_automatic_write_reallocation_enabled_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_automatic_write_reallocation_enabled_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of automatic_write_reallocation_enabled set to the given value.
#Errors
If the given value is out of bounds for automatic_write_reallocation_enabled.
Sourcepub fn set_automatic_write_reallocation_enabled(
&mut self,
new_val: <B1 as Specifier>::InOut,
)
pub fn set_automatic_write_reallocation_enabled( &mut self, new_val: <B1 as Specifier>::InOut, )
Sets the value of automatic_write_reallocation_enabled to the given value.
#Panics
If the given value is out of bounds for automatic_write_reallocation_enabled.
Sourcepub fn set_automatic_write_reallocation_enabled_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_automatic_write_reallocation_enabled_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of automatic_write_reallocation_enabled to the given value.
#Errors
If the given value is out of bounds for automatic_write_reallocation_enabled.
Sourcepub fn automatic_read_reallocation_enabled(&self) -> <B1 as Specifier>::InOut
pub fn automatic_read_reallocation_enabled(&self) -> <B1 as Specifier>::InOut
Returns the value of automatic_read_reallocation_enabled.
Sourcepub fn automatic_read_reallocation_enabled_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn automatic_read_reallocation_enabled_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of automatic_read_reallocation_enabled.
#Errors
If the returned value contains an invalid bit pattern for automatic_read_reallocation_enabled.
Sourcepub fn with_automatic_read_reallocation_enabled(
self,
new_val: <B1 as Specifier>::InOut,
) -> Self
pub fn with_automatic_read_reallocation_enabled( self, new_val: <B1 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of automatic_read_reallocation_enabled set to the given value.
#Panics
If the given value is out of bounds for automatic_read_reallocation_enabled.
Sourcepub fn with_automatic_read_reallocation_enabled_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_automatic_read_reallocation_enabled_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of automatic_read_reallocation_enabled set to the given value.
#Errors
If the given value is out of bounds for automatic_read_reallocation_enabled.
Sourcepub fn set_automatic_read_reallocation_enabled(
&mut self,
new_val: <B1 as Specifier>::InOut,
)
pub fn set_automatic_read_reallocation_enabled( &mut self, new_val: <B1 as Specifier>::InOut, )
Sets the value of automatic_read_reallocation_enabled to the given value.
#Panics
If the given value is out of bounds for automatic_read_reallocation_enabled.
Sourcepub fn set_automatic_read_reallocation_enabled_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_automatic_read_reallocation_enabled_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of automatic_read_reallocation_enabled to the given value.
#Errors
If the given value is out of bounds for automatic_read_reallocation_enabled.
Sourcepub fn transfer_block(&self) -> <B1 as Specifier>::InOut
pub fn transfer_block(&self) -> <B1 as Specifier>::InOut
Returns the value of transfer_block.
Sourcepub fn transfer_block_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn transfer_block_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of transfer_block.
#Errors
If the returned value contains an invalid bit pattern for transfer_block.
Sourcepub fn with_transfer_block(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_transfer_block(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of transfer_block set to the given value.
#Panics
If the given value is out of bounds for transfer_block.
Sourcepub fn with_transfer_block_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_transfer_block_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of transfer_block set to the given value.
#Errors
If the given value is out of bounds for transfer_block.
Sourcepub fn set_transfer_block(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_transfer_block(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of transfer_block to the given value.
#Panics
If the given value is out of bounds for transfer_block.
Sourcepub fn set_transfer_block_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_transfer_block_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of transfer_block to the given value.
#Errors
If the given value is out of bounds for transfer_block.
Sourcepub fn read_continuous(&self) -> <B1 as Specifier>::InOut
pub fn read_continuous(&self) -> <B1 as Specifier>::InOut
Returns the value of read_continuous.
Sourcepub fn read_continuous_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn read_continuous_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of read_continuous.
#Errors
If the returned value contains an invalid bit pattern for read_continuous.
Sourcepub fn with_read_continuous(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_read_continuous(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of read_continuous set to the given value.
#Panics
If the given value is out of bounds for read_continuous.
Sourcepub fn with_read_continuous_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_read_continuous_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of read_continuous set to the given value.
#Errors
If the given value is out of bounds for read_continuous.
Sourcepub fn set_read_continuous(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_read_continuous(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of read_continuous to the given value.
#Panics
If the given value is out of bounds for read_continuous.
Sourcepub fn set_read_continuous_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_read_continuous_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of read_continuous to the given value.
#Errors
If the given value is out of bounds for read_continuous.
Sourcepub fn enable_early_recovery(&self) -> <B1 as Specifier>::InOut
pub fn enable_early_recovery(&self) -> <B1 as Specifier>::InOut
Returns the value of enable_early_recovery.
Sourcepub fn enable_early_recovery_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn enable_early_recovery_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of enable_early_recovery.
#Errors
If the returned value contains an invalid bit pattern for enable_early_recovery.
Sourcepub fn with_enable_early_recovery(
self,
new_val: <B1 as Specifier>::InOut,
) -> Self
pub fn with_enable_early_recovery( self, new_val: <B1 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of enable_early_recovery set to the given value.
#Panics
If the given value is out of bounds for enable_early_recovery.
Sourcepub fn with_enable_early_recovery_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_enable_early_recovery_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of enable_early_recovery set to the given value.
#Errors
If the given value is out of bounds for enable_early_recovery.
Sourcepub fn set_enable_early_recovery(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_enable_early_recovery(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of enable_early_recovery to the given value.
#Panics
If the given value is out of bounds for enable_early_recovery.
Sourcepub fn set_enable_early_recovery_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_enable_early_recovery_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of enable_early_recovery to the given value.
#Errors
If the given value is out of bounds for enable_early_recovery.
Sourcepub fn post_error(&self) -> <B1 as Specifier>::InOut
pub fn post_error(&self) -> <B1 as Specifier>::InOut
Returns the value of post_error.
Sourcepub fn post_error_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn post_error_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of post_error.
#Errors
If the returned value contains an invalid bit pattern for post_error.
Sourcepub fn with_post_error(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_post_error(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of post_error set to the given value.
#Panics
If the given value is out of bounds for post_error.
Sourcepub fn with_post_error_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_post_error_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of post_error set to the given value.
#Errors
If the given value is out of bounds for post_error.
Sourcepub fn set_post_error(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_post_error(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of post_error to the given value.
#Panics
If the given value is out of bounds for post_error.
Sourcepub fn set_post_error_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_post_error_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of post_error to the given value.
#Errors
If the given value is out of bounds for post_error.
Sourcepub fn data_terminate_on_error(&self) -> <B1 as Specifier>::InOut
pub fn data_terminate_on_error(&self) -> <B1 as Specifier>::InOut
Returns the value of data_terminate_on_error.
Sourcepub fn data_terminate_on_error_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn data_terminate_on_error_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of data_terminate_on_error.
#Errors
If the returned value contains an invalid bit pattern for data_terminate_on_error.
Sourcepub fn with_data_terminate_on_error(
self,
new_val: <B1 as Specifier>::InOut,
) -> Self
pub fn with_data_terminate_on_error( self, new_val: <B1 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of data_terminate_on_error set to the given value.
#Panics
If the given value is out of bounds for data_terminate_on_error.
Sourcepub fn with_data_terminate_on_error_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_data_terminate_on_error_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of data_terminate_on_error set to the given value.
#Errors
If the given value is out of bounds for data_terminate_on_error.
Sourcepub fn set_data_terminate_on_error(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_data_terminate_on_error(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of data_terminate_on_error to the given value.
#Panics
If the given value is out of bounds for data_terminate_on_error.
Sourcepub fn set_data_terminate_on_error_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_data_terminate_on_error_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of data_terminate_on_error to the given value.
#Errors
If the given value is out of bounds for data_terminate_on_error.
Sourcepub fn disable_correction(&self) -> <B1 as Specifier>::InOut
pub fn disable_correction(&self) -> <B1 as Specifier>::InOut
Returns the value of disable_correction.
Sourcepub fn disable_correction_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn disable_correction_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of disable_correction.
#Errors
If the returned value contains an invalid bit pattern for disable_correction.
Sourcepub fn with_disable_correction(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_disable_correction(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of disable_correction set to the given value.
#Panics
If the given value is out of bounds for disable_correction.
Sourcepub fn with_disable_correction_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_disable_correction_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of disable_correction set to the given value.
#Errors
If the given value is out of bounds for disable_correction.
Sourcepub fn set_disable_correction(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_disable_correction(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of disable_correction to the given value.
#Panics
If the given value is out of bounds for disable_correction.
Sourcepub fn set_disable_correction_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_disable_correction_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of disable_correction to the given value.
#Errors
If the given value is out of bounds for disable_correction.
Sourcepub fn read_retry_count(&self) -> <B8 as Specifier>::InOut
pub fn read_retry_count(&self) -> <B8 as Specifier>::InOut
Returns the value of read_retry_count.
Sourcepub fn read_retry_count_or_err(
&self,
) -> Result<<B8 as Specifier>::InOut, InvalidBitPattern<<B8 as Specifier>::Bytes>>
pub fn read_retry_count_or_err( &self, ) -> Result<<B8 as Specifier>::InOut, InvalidBitPattern<<B8 as Specifier>::Bytes>>
Returns the value of read_retry_count.
#Errors
If the returned value contains an invalid bit pattern for read_retry_count.
Sourcepub fn with_read_retry_count(self, new_val: <B8 as Specifier>::InOut) -> Self
pub fn with_read_retry_count(self, new_val: <B8 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of read_retry_count set to the given value.
#Panics
If the given value is out of bounds for read_retry_count.
Sourcepub fn with_read_retry_count_checked(
self,
new_val: <B8 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_read_retry_count_checked( self, new_val: <B8 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of read_retry_count set to the given value.
#Errors
If the given value is out of bounds for read_retry_count.
Sourcepub fn set_read_retry_count(&mut self, new_val: <B8 as Specifier>::InOut)
pub fn set_read_retry_count(&mut self, new_val: <B8 as Specifier>::InOut)
Sets the value of read_retry_count to the given value.
#Panics
If the given value is out of bounds for read_retry_count.
Sourcepub fn set_read_retry_count_checked(
&mut self,
new_val: <B8 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_read_retry_count_checked( &mut self, new_val: <B8 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of read_retry_count to the given value.
#Errors
If the given value is out of bounds for read_retry_count.
Sourcepub fn write_retry_count(&self) -> <B8 as Specifier>::InOut
pub fn write_retry_count(&self) -> <B8 as Specifier>::InOut
Returns the value of write_retry_count.
Sourcepub fn write_retry_count_or_err(
&self,
) -> Result<<B8 as Specifier>::InOut, InvalidBitPattern<<B8 as Specifier>::Bytes>>
pub fn write_retry_count_or_err( &self, ) -> Result<<B8 as Specifier>::InOut, InvalidBitPattern<<B8 as Specifier>::Bytes>>
Returns the value of write_retry_count.
#Errors
If the returned value contains an invalid bit pattern for write_retry_count.
Sourcepub fn with_write_retry_count(self, new_val: <B8 as Specifier>::InOut) -> Self
pub fn with_write_retry_count(self, new_val: <B8 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of write_retry_count set to the given value.
#Panics
If the given value is out of bounds for write_retry_count.
Sourcepub fn with_write_retry_count_checked(
self,
new_val: <B8 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_write_retry_count_checked( self, new_val: <B8 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of write_retry_count set to the given value.
#Errors
If the given value is out of bounds for write_retry_count.
Sourcepub fn set_write_retry_count(&mut self, new_val: <B8 as Specifier>::InOut)
pub fn set_write_retry_count(&mut self, new_val: <B8 as Specifier>::InOut)
Sets the value of write_retry_count to the given value.
#Panics
If the given value is out of bounds for write_retry_count.
Sourcepub fn set_write_retry_count_checked(
&mut self,
new_val: <B8 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_write_retry_count_checked( &mut self, new_val: <B8 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of write_retry_count to the given value.
#Errors
If the given value is out of bounds for write_retry_count.
Sourcepub fn recovery_time_limit(&self) -> <B16 as Specifier>::InOut
pub fn recovery_time_limit(&self) -> <B16 as Specifier>::InOut
Returns the value of recovery_time_limit.
Sourcepub fn recovery_time_limit_or_err(
&self,
) -> Result<<B16 as Specifier>::InOut, InvalidBitPattern<<B16 as Specifier>::Bytes>>
pub fn recovery_time_limit_or_err( &self, ) -> Result<<B16 as Specifier>::InOut, InvalidBitPattern<<B16 as Specifier>::Bytes>>
Returns the value of recovery_time_limit.
#Errors
If the returned value contains an invalid bit pattern for recovery_time_limit.
Sourcepub fn with_recovery_time_limit(
self,
new_val: <B16 as Specifier>::InOut,
) -> Self
pub fn with_recovery_time_limit( self, new_val: <B16 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of recovery_time_limit set to the given value.
#Panics
If the given value is out of bounds for recovery_time_limit.
Sourcepub fn with_recovery_time_limit_checked(
self,
new_val: <B16 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_recovery_time_limit_checked( self, new_val: <B16 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of recovery_time_limit set to the given value.
#Errors
If the given value is out of bounds for recovery_time_limit.
Sourcepub fn set_recovery_time_limit(&mut self, new_val: <B16 as Specifier>::InOut)
pub fn set_recovery_time_limit(&mut self, new_val: <B16 as Specifier>::InOut)
Sets the value of recovery_time_limit to the given value.
#Panics
If the given value is out of bounds for recovery_time_limit.
Sourcepub fn set_recovery_time_limit_checked(
&mut self,
new_val: <B16 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_recovery_time_limit_checked( &mut self, new_val: <B16 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of recovery_time_limit to the given value.
#Errors
If the given value is out of bounds for recovery_time_limit.
Trait Implementations§
Source§impl CheckTotalSizeMultipleOf8 for ReadWriteErrorRecoveryPage
impl CheckTotalSizeMultipleOf8 for ReadWriteErrorRecoveryPage
Source§impl Clone for ReadWriteErrorRecoveryPage
impl Clone for ReadWriteErrorRecoveryPage
Source§fn clone(&self) -> ReadWriteErrorRecoveryPage
fn clone(&self) -> ReadWriteErrorRecoveryPage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more