[][src]Struct wasi_common_lucet::WasiCtxBuilder

pub struct WasiCtxBuilder { /* fields omitted */ }

Methods

impl WasiCtxBuilder[src]

pub fn new() -> Result<WasiCtxBuilder, u16>[src]

Builder for a new WasiCtx.

pub fn args<S>(
    self,
    args: impl Iterator<Item = S>
) -> Result<WasiCtxBuilder, u16> where
    S: AsRef<str>, 
[src]

pub fn arg(self, arg: &str) -> Result<WasiCtxBuilder, u16>[src]

pub fn inherit_stdio(self) -> Result<WasiCtxBuilder, u16>[src]

pub fn inherit_env(self) -> Result<WasiCtxBuilder, u16>[src]

pub fn env<S>(self, k: S, v: S) -> Result<WasiCtxBuilder, u16> where
    S: AsRef<str>, 
[src]

pub fn envs<S, T>(
    self,
    envs: impl Iterator<Item = T>
) -> Result<WasiCtxBuilder, u16> where
    S: AsRef<str>,
    T: Borrow<(S, S)>, 
[src]

pub fn preopened_dir<P>(self, dir: File, guest_path: P) -> WasiCtxBuilder where
    P: AsRef<Path>, 
[src]

pub fn build(self) -> Result<WasiCtx, u16>[src]

Auto Trait Implementations

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> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self