pub struct CleanupReport {
pub normalization: CleanupState,
pub unlock: CleanupState,
pub unmap: CleanupState,
}Expand description
Observable result of explicit page-sealed mapping cleanup.
This report contains no secret bytes, mapping addresses, or canary values.
Fields§
§normalization: CleanupStateOutcome of normalizing every data page to writable protection before clearing.
unlock: CleanupStateOutcome of releasing the operating-system memory lock.
unmap: CleanupStateOutcome of releasing the guarded mapping.
Implementations§
Source§impl CleanupReport
impl CleanupReport
Sourcepub const fn completed(self) -> bool
pub const fn completed(self) -> bool
Return true when every required cleanup operation completed.
Sourcepub const fn normalization_failed(self) -> bool
pub const fn normalization_failed(self) -> bool
Return true when page-protection normalization failed.
Sourcepub const fn unlock_failed(self) -> bool
pub const fn unlock_failed(self) -> bool
Return true when memory unlocking failed.
Sourcepub const fn unmap_failed(self) -> bool
pub const fn unmap_failed(self) -> bool
Return true when mapping release failed.
Sourcepub const fn first_failure(self) -> Option<GuardPageError>
pub const fn first_failure(self) -> Option<GuardPageError>
Return the first failed operation in normalization, unlock, unmap order.
Trait Implementations§
Source§impl Clone for CleanupReport
impl Clone for CleanupReport
Source§fn clone(&self) -> CleanupReport
fn clone(&self) -> CleanupReport
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 CleanupReport
Source§impl Debug for CleanupReport
impl Debug for CleanupReport
impl Eq for CleanupReport
Source§impl PartialEq for CleanupReport
impl PartialEq for CleanupReport
impl StructuralPartialEq for CleanupReport
Auto Trait Implementations§
impl Freeze for CleanupReport
impl RefUnwindSafe for CleanupReport
impl Send for CleanupReport
impl Sync for CleanupReport
impl Unpin for CleanupReport
impl UnsafeUnpin for CleanupReport
impl UnwindSafe for CleanupReport
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