#[non_exhaustive]#[repr(i32)]pub enum Advice {
Normal = 0,
Sequential = 2,
Random = 1,
WillNeed = 3,
}
Available on crate feature
mm
only.Expand description
POSIX_MADV_*
constants for use with madvise
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal = 0
POSIX_MADV_NORMAL
Sequential = 2
POSIX_MADV_SEQUENTIAL
Random = 1
POSIX_MADV_RANDOM
WillNeed = 3
POSIX_MADV_WILLNEED
Implementations§
Trait Implementations§
source§impl PartialEq for Advice
impl PartialEq for Advice
impl Copy for Advice
impl Eq for Advice
impl StructuralEq for Advice
impl StructuralPartialEq for Advice
Auto Trait Implementations§
impl RefUnwindSafe for Advice
impl Send for Advice
impl Sync for Advice
impl Unpin for Advice
impl UnwindSafe for Advice
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