Enum rustix::fs::Advice
#[repr(u32)]
pub enum Advice {
Normal,
Sequential,
Random,
NoReuse,
WillNeed,
DontNeed,
}
Documentation
POSIX_FADV_*
constants for use with fadvise
.
Variants
Normal
POSIX_FADV_NORMAL
Sequential
POSIX_FADV_SEQUENTIAL
Random
POSIX_FADV_RANDOM
NoReuse
POSIX_FADV_NOREUSE
WillNeed
POSIX_FADV_WILLNEED
DontNeed
POSIX_FADV_DONTNEED
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