[][src]Struct wasmer_wasi_fl::state::PreopenDirBuilder

pub struct PreopenDirBuilder { /* fields omitted */ }

Builder for preopened directories.

Implementations

impl PreopenDirBuilder[src]

pub fn directory<FilePath>(&mut self, po_dir: FilePath) -> &mut Self where
    FilePath: AsRef<Path>, 
[src]

Point the preopened directory to the path given by po_dir

pub fn alias(&mut self, alias: &str) -> &mut Self[src]

Make this preopened directory appear to the WASI program as alias

pub fn read(&mut self, toggle: bool) -> &mut Self[src]

Set read permissions affecting files in the directory

pub fn write(&mut self, toggle: bool) -> &mut Self[src]

Set write permissions affecting files in the directory

pub fn create(&mut self, toggle: bool) -> &mut Self[src]

Set create permissions affecting files in the directory

Create implies write permissions

Trait Implementations

impl Debug for PreopenDirBuilder[src]

impl Default for PreopenDirBuilder[src]

Auto Trait Implementations

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.