pub struct SensitiveCreate { /* private fields */ }Expand description
Structure that defines the values to be placed in the sensitive area of a created object.
§Details
This corresponds to the TPMS_SENSITIVE_CREATE structure.
There is a corresponding buffer type SensitiveCreateBuffer that holds the data in a marshalled form.
Implementations§
Source§impl SensitiveCreate
impl SensitiveCreate
Sourcepub const fn new(user_auth: Auth, data: SensitiveData) -> Self
pub const fn new(user_auth: Auth, data: SensitiveData) -> Self
Creates new SensitiveCreate.
Sourcepub const fn data(&self) -> &SensitiveData
pub const fn data(&self) -> &SensitiveData
Returns the sensitive data
Trait Implementations§
Source§impl Clone for SensitiveCreate
impl Clone for SensitiveCreate
Source§fn clone(&self) -> SensitiveCreate
fn clone(&self) -> SensitiveCreate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SensitiveCreate
impl Debug for SensitiveCreate
Source§impl From<SensitiveCreate> for TPMS_SENSITIVE_CREATE
impl From<SensitiveCreate> for TPMS_SENSITIVE_CREATE
Source§fn from(sensitive_create: SensitiveCreate) -> Self
fn from(sensitive_create: SensitiveCreate) -> Self
Converts to this type from the input type.
Source§impl Marshall for SensitiveCreate
impl Marshall for SensitiveCreate
const BUFFER_SIZE: usize
Source§impl PartialEq for SensitiveCreate
impl PartialEq for SensitiveCreate
Source§impl TryFrom<SensitiveCreate> for SensitiveCreateBuffer
impl TryFrom<SensitiveCreate> for SensitiveCreateBuffer
Source§fn try_from(sensitve_create: SensitiveCreate) -> Result<SensitiveCreateBuffer>
fn try_from(sensitve_create: SensitiveCreate) -> Result<SensitiveCreateBuffer>
Performs the conversion.
Source§impl UnMarshall for SensitiveCreate
impl UnMarshall for SensitiveCreate
Source§fn unmarshall_offset(marshalled_data: &[u8], offset: &mut usize) -> Result<Self>
fn unmarshall_offset(marshalled_data: &[u8], offset: &mut usize) -> Result<Self>
Creates the type from the marshalled data, and modifies
the
offset to point to the first byte in the marshalled_data
buffer which was not used in the conversion.Source§fn unmarshall(marshalled_data: &[u8]) -> Result<Self>
fn unmarshall(marshalled_data: &[u8]) -> Result<Self>
Creates the type from marshalled data.
Source§impl Zeroize for SensitiveCreate
impl Zeroize for SensitiveCreate
impl Eq for SensitiveCreate
impl StructuralPartialEq for SensitiveCreate
Auto Trait Implementations§
impl Freeze for SensitiveCreate
impl RefUnwindSafe for SensitiveCreate
impl Send for SensitiveCreate
impl Sync for SensitiveCreate
impl Unpin for SensitiveCreate
impl UnsafeUnpin for SensitiveCreate
impl UnwindSafe for SensitiveCreate
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
Mutably borrows from an owned value. Read more