pub enum PageAdviceOutcome {
NotRequested,
Applied,
SkippedEmpty,
Unsupported,
Failed(String),
}Expand description
The observable result of applying one access-class policy to a mapped section.
An advice failure is reported but does not reject an otherwise valid artifact: madvise is a
performance hint, never an integrity mechanism. The reader still verifies every section digest
before this record is produced, so a failed hint cannot turn corruption into a delayed fault.
Variants§
NotRequested
The access class requires no syscall; the section remains lazily mapped.
Applied
The matching native advisory request succeeded.
SkippedEmpty
The section has no bytes to advise.
Unsupported
The build/platform uses the safe owned-byte fallback instead of an unimplemented OS FFI.
Failed(String)
The OS rejected a performance hint; artifact correctness is unaffected.
Trait Implementations§
Source§impl Clone for PageAdviceOutcome
impl Clone for PageAdviceOutcome
Source§fn clone(&self) -> PageAdviceOutcome
fn clone(&self) -> PageAdviceOutcome
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 moreSource§impl Debug for PageAdviceOutcome
impl Debug for PageAdviceOutcome
impl Eq for PageAdviceOutcome
Source§impl PartialEq for PageAdviceOutcome
impl PartialEq for PageAdviceOutcome
impl StructuralPartialEq for PageAdviceOutcome
Auto Trait Implementations§
impl Freeze for PageAdviceOutcome
impl RefUnwindSafe for PageAdviceOutcome
impl Send for PageAdviceOutcome
impl Sync for PageAdviceOutcome
impl Unpin for PageAdviceOutcome
impl UnsafeUnpin for PageAdviceOutcome
impl UnwindSafe for PageAdviceOutcome
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