MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / stream

Method stream

crates/wit-bindgen/src/rust.rs:241–247  ·  view source on GitHub ↗
(&self, ty: Option<&Type>)

Source from the content-addressed store, hash-verified

239 self.push_str(&self.stream(ty))
240 }
241 fn stream(&self, ty: Option<&Type>) -> String {
242 let wt = self.wasmtime_path();
243 let mut out = format!("{wt}::component::HostStream<");
244 out.push_str(&self.optional_ty(ty, TypeMode::Owned));
245 out.push_str(">");
246 out
247 }
248
249 fn print_future(&mut self, ty: Option<&Type>) {
250 self.push_str(&self.future(ty))

Callers 1

print_streamMethod · 0.45

Implementers 1

lib.rscrates/wit-bindgen/src/lib.rs

Calls 3

wasmtime_pathMethod · 0.80
optional_tyMethod · 0.80
push_strMethod · 0.45

Tested by

no test coverage detected