#[non_exhaustive]#[repr(u8)]pub enum advice {
DONTNEED = 1,
NOREUSE = 2,
NORMAL = 3,
RANDOM = 4,
SEQUENTIAL = 5,
WILLNEED = 6,
}Expand description
File or memory access pattern advisory information.
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.
DONTNEED = 1
The application expects that it will not access the specified data in the near future.
NOREUSE = 2
The application expects to access the specified data once and then not reuse it thereafter.
NORMAL = 3
The application has no advice to give on its behavior with respect to the specified data.
RANDOM = 4
The application expects to access the specified data in a random order.
SEQUENTIAL = 5
The application expects to access the specified data sequentially from lower offsets to higher offsets.
WILLNEED = 6
The application expects to access the specified data in the near future.
Trait Implementations§
impl Copy for advice
impl Eq for advice
impl StructuralPartialEq for advice
Auto Trait Implementations§
impl Freeze for advice
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