Enum rustix::io::Advice
#[repr(u32)]
pub enum Advice {
Normal,
Sequential,
Random,
WillNeed,
LinuxDontNeed,
LinuxFree,
LinuxRemove,
LinuxDontFork,
LinuxDoFork,
LinuxHwPoison,
LinuxSoftOffline,
LinuxMergeable,
LinuxUnmergeable,
LinuxHugepage,
LinuxNoHugepage,
LinuxDontDump,
LinuxDoDump,
LinuxWipeOnFork,
LinuxKeepOnFork,
LinuxCold,
LinuxPageOut,
}
Documentation
POSIX_MADV_*
constants for use with madvise
.
Variants
Normal
POSIX_MADV_NORMAL
Sequential
POSIX_MADV_SEQUENTIAL
Random
POSIX_MADV_RANDOM
WillNeed
POSIX_MADV_WILLNEED
LinuxDontNeed
MADV_DONTNEED
LinuxFree
MADV_FREE
(since Linux 4.5)
LinuxRemove
MADV_REMOVE
LinuxDontFork
MADV_DONTFORK
LinuxDoFork
MADV_DOFORK
LinuxHwPoison
MADV_HWPOISON
LinuxSoftOffline
MADV_SOFT_OFFLINE
LinuxMergeable
MADV_MERGEABLE
LinuxUnmergeable
MADV_UNMERGEABLE
LinuxHugepage
MADV_HUGEPAGE
(since Linux 2.6.38)
LinuxNoHugepage
MADV_NOHUGEPAGE
(since Linux 2.6.38)
LinuxDontDump
MADV_DONTDUMP
(since Linux 3.4)
LinuxDoDump
MADV_DODUMP
(since Linux 3.4)
LinuxWipeOnFork
MADV_WIPEONFORK
(since Linux 4.14)
LinuxKeepOnFork
MADV_KEEPONFORK
(since Linux 4.14)
LinuxCold
MADV_COLD
(since Linux 5.4)
LinuxPageOut
MADV_PAGEOUT
(since Linux 5.4)
Implementations
Trait Implementations
impl Debug for Advice
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl StructuralEq for Advice
impl StructuralPartialEq for Advice
Auto Trait Implementations
impl RefUnwindSafe for Advice
impl UnwindSafe for Advice
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T