#[repr(u32)]pub enum Advice {
Normal = 0,
Sequential = 2,
Random = 1,
NoReuse = 5,
WillNeed = 3,
DontNeed = 4,
}
Available on crate feature
fs
only.Expand description
POSIX_FADV_*
constants for use with fadvise
.
Variants§
Normal = 0
POSIX_FADV_NORMAL
Sequential = 2
POSIX_FADV_SEQUENTIAL
Random = 1
POSIX_FADV_RANDOM
NoReuse = 5
POSIX_FADV_NOREUSE
WillNeed = 3
POSIX_FADV_WILLNEED
DontNeed = 4
POSIX_FADV_DONTNEED
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
Normal
: 0 bytesSequential
: 0 bytesRandom
: 0 bytesNoReuse
: 0 bytesWillNeed
: 0 bytesDontNeed
: 0 bytes