[][src]Enum wasi_types::Advice

#[repr(u8)]
pub enum Advice {
    Normal,
    Sequential,
    Random,
    DontNeed,
    NoReuse,
    WillNeed,
}

File or memory access pattern advisory information.

Variants

Normal

The application has no advice to give on its behavior with respect to the specified data.

Sequential

The application expects to access the data sequentially from lower to higher offsets.

Random

The application expects to access the specified data in a random order.

DontNeed

The application expects that it will not access the specified data in the near future.

NoReuse

The application expects to access the specified data once and then not reuse it thereafter.

WillNeed

The application expects to access the specified data in the near future.

Trait Implementations

impl Clone for Advice[src]

impl PartialEq<Advice> for Advice[src]

impl Copy for Advice[src]

impl TryFrom<u8> for Advice[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Sync for Advice

impl Send for Advice

impl Unpin for Advice

impl UnwindSafe for Advice

impl RefUnwindSafe for Advice

Blanket Implementations

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> From<T> for T[src]

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.

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

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

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