pub struct SanitizeCapabilities { /* private fields */ }
Implementations§
Source§impl SanitizeCapabilities
impl SanitizeCapabilities
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 SanitizeCapabilities
impl SanitizeCapabilities
Sourcepub fn crypto_erase(&self) -> <B1 as Specifier>::InOut
pub fn crypto_erase(&self) -> <B1 as Specifier>::InOut
Returns the value of crypto_erase.
Sourcepub fn crypto_erase_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn crypto_erase_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of crypto_erase.
#Errors
If the returned value contains an invalid bit pattern for crypto_erase.
Sourcepub fn block_erase(&self) -> <B1 as Specifier>::InOut
pub fn block_erase(&self) -> <B1 as Specifier>::InOut
Returns the value of block_erase.
Sourcepub fn block_erase_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn block_erase_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of block_erase.
#Errors
If the returned value contains an invalid bit pattern for block_erase.
Sourcepub fn overwrite_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn overwrite_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of overwrite.
#Errors
If the returned value contains an invalid bit pattern for overwrite.
Sourcepub fn no_dealloc_inhibited(&self) -> <B1 as Specifier>::InOut
pub fn no_dealloc_inhibited(&self) -> <B1 as Specifier>::InOut
Returns the value of no_dealloc_inhibited.
Sourcepub fn no_dealloc_inhibited_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn no_dealloc_inhibited_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of no_dealloc_inhibited.
#Errors
If the returned value contains an invalid bit pattern for no_dealloc_inhibited.
Sourcepub fn no_dealloc_mods_media(&self) -> <B2 as Specifier>::InOut
pub fn no_dealloc_mods_media(&self) -> <B2 as Specifier>::InOut
Returns the value of no_dealloc_mods_media.
Sourcepub fn no_dealloc_mods_media_or_err(
&self,
) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>
pub fn no_dealloc_mods_media_or_err( &self, ) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>
Returns the value of no_dealloc_mods_media.
#Errors
If the returned value contains an invalid bit pattern for no_dealloc_mods_media.
Trait Implementations§
Source§impl Clone for SanitizeCapabilities
impl Clone for SanitizeCapabilities
Source§fn clone(&self) -> SanitizeCapabilities
fn clone(&self) -> SanitizeCapabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more