[][src]Struct wasmer_wasi::state::HostFile

pub struct HostFile {
    pub inner: File,
    pub host_path: PathBuf,
    // some fields omitted
}

A thin wrapper around std::fs::File

Fields

inner: Filehost_path: PathBuf

Methods

impl HostFile[src]

pub fn new(
    file: File,
    host_path: PathBuf,
    read: bool,
    write: bool,
    append: bool
) -> Self
[src]

creates a new host file from a std::fs::File and a path

pub fn metadata(&self) -> Metadata[src]

Trait Implementations

impl WasiFile for HostFile[src]

impl Debug for HostFile[src]

impl Seek for HostFile[src]

impl Write for HostFile[src]

impl Read for HostFile[src]

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

impl Serialize for HostFile[src]

Auto Trait Implementations

impl Sync for HostFile

impl Send for HostFile

impl Unpin for HostFile

impl UnwindSafe for HostFile

impl RefUnwindSafe for HostFile

Blanket Implementations

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

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]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<R> ReadBytesExt for R where
    R: Read + ?Sized
[src]

impl<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

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