Enum PosixFadviseAdvice

enum PosixFadviseAdvice

The specific advice provided to posix_fadvise.

Variants

POSIX_FADV_NORMAL

Revert to the default data access behavior.

POSIX_FADV_SEQUENTIAL

The file data will be accessed sequentially.

POSIX_FADV_RANDOM

A hint that file data will be accessed randomly, and prefetching is likely not advantageous.

POSIX_FADV_NOREUSE

The specified data will only be accessed once and then not reused.

POSIX_FADV_WILLNEED

The specified data will be accessed in the near future.

POSIX_FADV_DONTNEED

The specified data will not be accessed in the near future.

Implementations

impl Clone for PosixFadviseAdvice

fn clone(self: &Self) -> PosixFadviseAdvice

impl Copy for PosixFadviseAdvice

impl Debug for PosixFadviseAdvice

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for PosixFadviseAdvice

impl Freeze for PosixFadviseAdvice

impl Hash for PosixFadviseAdvice

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl Ord for PosixFadviseAdvice

fn cmp(self: &Self, other: &PosixFadviseAdvice) -> Ordering

impl PartialEq for PosixFadviseAdvice

fn eq(self: &Self, other: &PosixFadviseAdvice) -> bool

impl PartialOrd for PosixFadviseAdvice

fn partial_cmp(self: &Self, other: &PosixFadviseAdvice) -> Option<Ordering>

impl RefUnwindSafe for PosixFadviseAdvice

impl Send for PosixFadviseAdvice

impl StructuralPartialEq for PosixFadviseAdvice

impl Sync for PosixFadviseAdvice

impl Unpin for PosixFadviseAdvice

impl UnsafeUnpin for PosixFadviseAdvice

impl UnwindSafe for PosixFadviseAdvice

impl<T> Any for PosixFadviseAdvice

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PosixFadviseAdvice

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PosixFadviseAdvice

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for PosixFadviseAdvice

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for PosixFadviseAdvice

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for PosixFadviseAdvice

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for PosixFadviseAdvice

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PosixFadviseAdvice

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PosixFadviseAdvice

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>