[−][src]Struct wasmer_wasi_fl::state::PreopenDirBuilder
Builder for preopened directories.
Implementations
impl PreopenDirBuilder
[src]
pub fn directory<FilePath>(&mut self, po_dir: FilePath) -> &mut Self where
FilePath: AsRef<Path>,
[src]
FilePath: AsRef<Path>,
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]
pub fn default() -> PreopenDirBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for PreopenDirBuilder
impl Send for PreopenDirBuilder
impl Sync for PreopenDirBuilder
impl Unpin for PreopenDirBuilder
impl UnwindSafe for PreopenDirBuilder
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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, 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.
pub 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>,