[][src]Enum olio::mem::MemAdvice

#[repr(u64)]pub enum MemAdvice {
    Normal,
    Random,
    Sequential,
}

Memory access pattern advice.

This encodes a subset of POSIX.1-2001 madvise flags, and is intending to be a workable cross platform abstraction. In particular, the values do not correspond to any libc or other lib constants, and are arranged in ascending order of minimal to maximum priority in the presence of concurrent interest in the same region.

Variants

Normal
Random
Sequential

Trait Implementations

impl Clone for MemAdvice[src]

impl Copy for MemAdvice[src]

impl Debug for MemAdvice[src]

impl Eq for MemAdvice[src]

impl From<u64> for MemAdvice[src]

impl Ord for MemAdvice[src]

impl PartialEq<MemAdvice> for MemAdvice[src]

impl PartialOrd<MemAdvice> for MemAdvice[src]

impl StructuralEq for MemAdvice[src]

impl StructuralPartialEq for MemAdvice[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.