[][src]Struct wasmer_wasi::Fd

pub struct Fd {
    pub rights: __wasi_rights_t,
    pub rights_inheriting: __wasi_rights_t,
    pub flags: __wasi_fdflags_t,
    pub offset: u64,
    pub open_flags: u16,
    pub inode: Inode,
}

Fields

rights: __wasi_rights_trights_inheriting: __wasi_rights_tflags: __wasi_fdflags_toffset: u64open_flags: u16

Flags that determine how the Fd can be used.

Used when reopening a [HostFile] during WasiState deserialization.

inode: Inode

Implementations

impl Fd[src]

pub const READ: u16[src]

This Fd can be used with read system calls.

pub const WRITE: u16[src]

This Fd can be used with write system calls.

pub const APPEND: u16[src]

This Fd can append in write system calls. Note that the append permission implies the write permission.

pub const TRUNCATE: u16[src]

This Fd will delete everything before writing. Note that truncate permissions require the write permission.

This permission is currently unused when deserializing WasiState.

pub const CREATE: u16[src]

This Fd may create a file before writing to it. Note that create permissions require write permissions.

This permission is currently unused when deserializing WasiState.

Trait Implementations

impl Debug for Fd[src]

impl<'de> Deserialize<'de> for Fd[src]

impl Serialize for Fd[src]

Auto Trait Implementations

impl RefUnwindSafe for Fd

impl Send for Fd

impl Sync for Fd

impl Unpin for Fd

impl UnwindSafe for Fd

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Serialize for T where
    T: Serialize + ?Sized
[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.