[][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 PartialEq<Advice> for Advice[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Clone for Advice[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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 Send for Advice

impl Sync for Advice

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<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> Borrow<T> for T where
    T: ?Sized
[src]

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

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