[−][src]Struct wasi_common_lucet::WasiCtxBuilder
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]
self,
args: impl Iterator<Item = S>
) -> Result<WasiCtxBuilder, u16> where
S: AsRef<str>,
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]
S: AsRef<str>,
pub fn envs<S, T>(
self,
envs: impl Iterator<Item = T>
) -> Result<WasiCtxBuilder, u16> where
S: AsRef<str>,
T: Borrow<(S, S)>,
[src]
self,
envs: impl Iterator<Item = T>
) -> Result<WasiCtxBuilder, u16> where
S: AsRef<str>,
T: Borrow<(S, S)>,
pub fn preopened_dir<P>(self, dir: File, guest_path: P) -> WasiCtxBuilder where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
pub fn build(self) -> Result<WasiCtx, u16>
[src]
Auto Trait Implementations
impl Send for WasiCtxBuilder
impl Sync for WasiCtxBuilder
impl Unpin for WasiCtxBuilder
impl UnwindSafe for WasiCtxBuilder
impl RefUnwindSafe for WasiCtxBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self