Struct wasi_common::WasiCtx[][src]

pub struct WasiCtx {
    pub args: StringArray,
    pub env: StringArray,
    pub random: RefCell<Box<dyn RngCore>>,
    pub clocks: WasiClocks,
    pub sched: Box<dyn WasiSched>,
    pub table: Rc<RefCell<Table>>,
}

Fields

args: StringArrayenv: StringArrayrandom: RefCell<Box<dyn RngCore>>clocks: WasiClockssched: Box<dyn WasiSched>table: Rc<RefCell<Table>>

Implementations

impl WasiCtx[src]

pub fn builder(
    random: RefCell<Box<dyn RngCore>>,
    clocks: WasiClocks,
    sched: Box<dyn WasiSched>,
    table: Rc<RefCell<Table>>
) -> WasiCtxBuilder
[src]

pub fn insert_file(&self, fd: u32, file: Box<dyn WasiFile>, caps: FileCaps)[src]

pub fn insert_dir(
    &self,
    fd: u32,
    dir: Box<dyn WasiDir>,
    caps: DirCaps,
    file_caps: FileCaps,
    path: PathBuf
)
[src]

pub fn table(&self) -> RefMut<'_, Table>[src]

Trait Implementations

impl UserErrorConversion for WasiCtx[src]

impl UserErrorConversion for WasiCtx[src]

impl<'a> WasiSnapshotPreview1 for WasiCtx[src]

impl<'a> WasiUnstable for WasiCtx[src]

Auto Trait Implementations

impl !RefUnwindSafe for WasiCtx

impl !Send for WasiCtx

impl !Sync for WasiCtx

impl Unpin for WasiCtx

impl !UnwindSafe for WasiCtx

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

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

impl<T> Pointee for T[src]

type Pointer = u32

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<V, T> VZip<V> for T where
    V: MultiLane<T>,