[−][src]Struct wasi_common::WasiCtxBuilder
Methods
impl WasiCtxBuilder
[src]
pub fn new() -> Result<Self, __wasi_errno_t>
[src]
Builder for a new WasiCtx
.
pub fn args<S: AsRef<str>>(
self,
args: impl Iterator<Item = S>
) -> Result<Self, __wasi_errno_t>
[src]
self,
args: impl Iterator<Item = S>
) -> Result<Self, __wasi_errno_t>
pub fn arg(self, arg: &str) -> Result<Self, __wasi_errno_t>
[src]
pub fn inherit_stdio(self) -> Result<Self, __wasi_errno_t>
[src]
pub fn inherit_env(self) -> Result<Self, __wasi_errno_t>
[src]
pub fn env<S: AsRef<str>>(self, k: S, v: S) -> Result<Self, __wasi_errno_t>
[src]
pub fn envs<S: AsRef<str>, T: Borrow<(S, S)>>(
self,
envs: impl Iterator<Item = T>
) -> Result<Self, __wasi_errno_t>
[src]
self,
envs: impl Iterator<Item = T>
) -> Result<Self, __wasi_errno_t>
pub fn preopened_dir<P: AsRef<Path>>(self, dir: File, guest_path: P) -> Self
[src]
pub fn build(self) -> Result<WasiCtx, __wasi_errno_t>
[src]
Auto Trait Implementations
impl Unpin for WasiCtxBuilder
impl Send for WasiCtxBuilder
impl Sync for WasiCtxBuilder
impl RefUnwindSafe for WasiCtxBuilder
impl UnwindSafe for WasiCtxBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,