Home
last modified time | relevance | path

Searched refs:WasiP1Ctx (Results 1 – 16 of 16) sorted by relevance

/wasmtime-44.0.1/benches/
H A Dwasi.rs6 use wasmtime_wasi::{DirPerms, FilePerms, WasiCtx, p1::WasiP1Ctx};
50 fn instantiate(wat: &[u8]) -> (Store<WasiP1Ctx>, TypedFunc<u64, u64>) { in instantiate() argument
63 fn wasi_context() -> WasiP1Ctx { in wasi_context()
H A Dinstantiation.rs9 use wasmtime_wasi::{WasiCtx, p1::WasiP1Ctx};
11 fn store(engine: &Engine) -> Store<WasiP1Ctx> { in store() argument
16 fn instantiate(pre: &InstancePre<WasiP1Ctx>, engine: &Engine) -> Result<()> { in instantiate() argument
/wasmtime-44.0.1/examples/wasip1-async/
H A Dmain.rs13 use wasmtime_wasi::p1::{self, WasiP1Ctx};
20 let mut linker: Linker<WasiP1Ctx> = Linker::new(&engine); in main()
/wasmtime-44.0.1/crates/wasi-nn/tests/exec/
H A Dwitx.rs6 use wasmtime_wasi::p1::WasiP1Ctx;
29 wasi: WasiP1Ctx,
/wasmtime-44.0.1/examples/tokio/
H A Dmain.rs5 use wasmtime_wasi::{WasiCtx, p1::WasiP1Ctx};
42 linker: Arc<Linker<WasiP1Ctx>>,
/wasmtime-44.0.1/crates/wizer/benches/
H A Dregex.rs7 use wasmtime_wasi::p1::WasiP1Ctx;
9 fn run_iter(linker: &wasmtime::Linker<WasiP1Ctx>, module: &wasmtime::Module) { in run_iter() argument
H A Duap.rs7 use wasmtime_wasi::p1::WasiP1Ctx;
9 fn run_iter(linker: &wasmtime::Linker<WasiP1Ctx>, module: &wasmtime::Module) { in run_iter() argument
/wasmtime-44.0.1/crates/bench-api/src/
H A Dlib.rs146 use wasmtime_wasi::{DirPerms, FilePerms, I32Exit, WasiCtx, p1::WasiP1Ctx};
395 make_wasi_cx: Box<dyn FnMut() -> Result<WasiP1Ctx>>,
403 wasi: WasiP1Ctx,
420 make_wasi_cx: impl FnMut() -> Result<WasiP1Ctx> + 'static, in new()
/wasmtime-44.0.1/crates/wasi/src/
H A Dctx.rs481 pub fn build_p1(&mut self) -> crate::p1::WasiP1Ctx { in build_p1() argument
483 crate::p1::WasiP1Ctx::new(wasi) in build_p1()
H A Dp1.rs142 pub struct WasiP1Ctx { struct
149 impl WasiP1Ctx { argument
232 impl WasiView for WasiP1Ctx { implementation
358 fn new(host: &mut WasiP1Ctx) -> Result<Self, types::Error> { in new()
485 view: &'a mut WasiP1Ctx,
577 impl WasiP1Ctx { implementation
783 f: impl Fn(&mut T) -> &mut WasiP1Ctx + Copy + Send + Sync + 'static, in add_to_linker_async()
849 f: impl Fn(&mut T) -> &mut WasiP1Ctx + Copy + Send + Sync + 'static, in add_to_linker_sync()
1185 impl wasi_snapshot_preview1::WasiSnapshotPreview1 for WasiP1Ctx { implementation
2590 ctx: &'a mut WasiP1Ctx, in poll_oneoff()
H A Dp0.rs7 use crate::p1::WasiP1Ctx;
14 f: impl Fn(&mut T) -> &mut WasiP1Ctx + Copy + Send + Sync + 'static, in add_to_linker_async()
21 f: impl Fn(&mut T) -> &mut WasiP1Ctx + Copy + Send + Sync + 'static, in add_to_linker_sync()
/wasmtime-44.0.1/crates/c-api/src/
H A Dwasi.rs14 use wasmtime_wasi::p1::WasiP1Ctx;
41 pub fn into_wasi_ctx(mut self) -> Result<WasiP1Ctx> { in into_wasi_ctx() argument
H A Dstore.rs86 pub(crate) wasi: Option<wasmtime_wasi::p1::WasiP1Ctx>,
/wasmtime-44.0.1/crates/wasi/tests/all/
H A Dp1.rs7 use wasmtime_wasi::p1::{WasiP1Ctx, add_to_linker_async};
13 let mut linker = Linker::<Ctx<WasiP1Ctx>>::new(&engine); in run()
/wasmtime-44.0.1/crates/wizer/tests/all/
H A Dtests.rs21 fn store() -> Result<Store<p1::WasiP1Ctx>> { in store()
29 async fn instantiate(store: &mut Store<p1::WasiP1Ctx>, module: &Module) -> Result<Instance> { in instantiate() argument
/wasmtime-44.0.1/src/commands/
H A Drun.rs1485 wasip1_ctx: Option<Arc<Mutex<wasmtime_wasi::p1::WasiP1Ctx>>>,
1508 pub(crate) fn wasip1_ctx(&mut self) -> &mut wasmtime_wasi::p1::WasiP1Ctx { in wasip1_ctx() argument