pub struct ProtectionRequest { /* private fields */ }Expand description
Allocation admission request made before plaintext can materialize.
Implementations§
Source§impl ProtectionRequest
impl ProtectionRequest
Sourcepub const fn logical_bytes(self) -> usize
pub const fn logical_bytes(self) -> usize
Requested logical allocation bytes.
Sourcepub const fn reserved_pages(self) -> usize
pub const fn reserved_pages(self) -> usize
Conservatively reserved effective pages.
Sourcepub const fn requires_attestation(self) -> bool
pub const fn requires_attestation(self) -> bool
Whether the operation requires attested protection.
Trait Implementations§
Source§impl Clone for ProtectionRequest
impl Clone for ProtectionRequest
Source§fn clone(&self) -> ProtectionRequest
fn clone(&self) -> ProtectionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProtectionRequest
Source§impl Debug for ProtectionRequest
impl Debug for ProtectionRequest
impl Eq for ProtectionRequest
Source§impl Hash for ProtectionRequest
impl Hash for ProtectionRequest
Source§impl PartialEq for ProtectionRequest
impl PartialEq for ProtectionRequest
impl StructuralPartialEq for ProtectionRequest
Auto Trait Implementations§
impl Freeze for ProtectionRequest
impl RefUnwindSafe for ProtectionRequest
impl Send for ProtectionRequest
impl Sync for ProtectionRequest
impl Unpin for ProtectionRequest
impl UnsafeUnpin for ProtectionRequest
impl UnwindSafe for ProtectionRequest
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