#[repr(C)]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 moresource§impl Debug for SanitizeCapabilities
impl Debug for SanitizeCapabilities
source§impl Default for SanitizeCapabilities
impl Default for SanitizeCapabilities
source§fn default() -> SanitizeCapabilities
fn default() -> SanitizeCapabilities
Auto Trait Implementations§
impl Freeze for SanitizeCapabilities
impl RefUnwindSafe for SanitizeCapabilities
impl Send for SanitizeCapabilities
impl Sync for SanitizeCapabilities
impl Unpin for SanitizeCapabilities
impl UnwindSafe for SanitizeCapabilities
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)