pub enum MemoryAdviceOutcome {
Applied,
SkippedEmpty,
Unsupported,
}Expand description
What became of one MemoryAdvice request.
Advice cannot change artifact bytes or correctness. Unsupported platforms retain the safe
owned-byte fallback and report that they did not make an OS request instead of pretending a
Windows PrefetchVirtualMemory policy was implemented and tested when it was not.
Variants§
Applied
The native madvise request succeeded.
SkippedEmpty
The mapping is empty, so there is no range for the kernel to advise.
Unsupported
This build or platform deliberately has no native advisory implementation.
Trait Implementations§
Source§impl Clone for MemoryAdviceOutcome
impl Clone for MemoryAdviceOutcome
Source§fn clone(&self) -> MemoryAdviceOutcome
fn clone(&self) -> MemoryAdviceOutcome
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 MemoryAdviceOutcome
Source§impl Debug for MemoryAdviceOutcome
impl Debug for MemoryAdviceOutcome
impl Eq for MemoryAdviceOutcome
Source§impl PartialEq for MemoryAdviceOutcome
impl PartialEq for MemoryAdviceOutcome
impl StructuralPartialEq for MemoryAdviceOutcome
Auto Trait Implementations§
impl Freeze for MemoryAdviceOutcome
impl RefUnwindSafe for MemoryAdviceOutcome
impl Send for MemoryAdviceOutcome
impl Sync for MemoryAdviceOutcome
impl Unpin for MemoryAdviceOutcome
impl UnsafeUnpin for MemoryAdviceOutcome
impl UnwindSafe for MemoryAdviceOutcome
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