Enum PosixFadviseAdvice
#[repr(i32)]
#[non_exhaustive]
pub enum PosixFadviseAdvice
The specific advice provided to posix_fadvise.
Variants
-
POSIX_FADV_NORMAL = libc::POSIX_FADV_NORMAL Revert to the default data access behavior.
-
POSIX_FADV_SEQUENTIAL = libc::POSIX_FADV_SEQUENTIAL The file data will be accessed sequentially.
-
POSIX_FADV_RANDOM = libc::POSIX_FADV_RANDOM A hint that file data will be accessed randomly, and prefetching is likely not advantageous.
-
POSIX_FADV_NOREUSE = libc::POSIX_FADV_NOREUSE The specified data will only be accessed once and then not reused.
-
POSIX_FADV_WILLNEED = libc::POSIX_FADV_WILLNEED The specified data will be accessed in the near future.
-
POSIX_FADV_DONTNEED = libc::POSIX_FADV_DONTNEED The specified data will not be accessed in the near future.
Trait Implementations
impl Clone for PosixFadviseAdvice
fn clone(&self) -> Self
impl Copy for PosixFadviseAdvice
impl Debug for PosixFadviseAdvice
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for PosixFadviseAdvice
impl Hash for PosixFadviseAdvice
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for PosixFadviseAdvice
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for PosixFadviseAdvice
fn eq(&self, other: &Self) -> bool
impl PartialOrd for PosixFadviseAdvice
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl StructuralPartialEq for PosixFadviseAdvice
Auto Trait Implementations
impl Freeze for PosixFadviseAdvice
impl RefUnwindSafe for PosixFadviseAdvice
impl Send for PosixFadviseAdvice
impl Sync for PosixFadviseAdvice
impl Unpin for PosixFadviseAdvice
impl UnsafeUnpin for PosixFadviseAdvice
impl UnwindSafe for PosixFadviseAdvice
Blanket Implementations
impl<T> Any for PosixFadviseAdvice
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PosixFadviseAdvice
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PosixFadviseAdvice
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for PosixFadviseAdvice
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for PosixFadviseAdvice
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for PosixFadviseAdvice
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for PosixFadviseAdvice
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PosixFadviseAdvice
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PosixFadviseAdvice
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>