[−][src]Struct wasmer_wasi::state::Fd
Fields
rights: __wasi_rights_t
rights_inheriting: __wasi_rights_t
flags: __wasi_fdflags_t
offset: u64
open_flags: u16
Flags that determine how the Fd
can be used.
Used when reopening a HostFile
during WasiState
deserialization.
inode: Inode
Methods
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]
Trait Implementations
impl Debug for Fd
[src]
impl<'de> Deserialize<'de> for Fd
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Fd
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,