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

Method context

crates/core/src/error/context.rs:132–140  ·  view source on GitHub ↗
(self, context: C)

Source from the content-addressed store, hash-verified

130{
131 #[inline]
132 fn context<C>(self, context: C) -> Result<T>
133 where
134 C: fmt::Display + Send + Sync + 'static,
135 {
136 match self {
137 Ok(x) => Ok(x),
138 Err(e) => Err(Error::new(e).context(context)),
139 }
140 }
141
142 #[inline]
143 fn with_context<C, F>(self, f: F) -> Result<T>

Callers 2

with_contextMethod · 0.45
ext_into_anyhowMethod · 0.45

Calls 2

OkFunction · 0.85
newFunction · 0.50

Tested by

no test coverage detected