Method
new
(
error_conf: &ErrorConf,
async_: &AsyncConf,
doc: &Document,
wasmtime: bool,
tracing: &TracingConf,
mutable: bool,
)
Source from the content-addressed store, hash-verified
| 22 | } |
| 23 | impl CodegenSettings { |
| 24 | pub fn new( |
| 25 | error_conf: &ErrorConf, |
| 26 | async_: &AsyncConf, |
| 27 | doc: &Document, |
| 28 | wasmtime: bool, |
| 29 | tracing: &TracingConf, |
| 30 | mutable: bool, |
| 31 | ) -> Result<Self, Error> { |
| 32 | let errors = ErrorTransform::new(error_conf, doc)?; |
| 33 | Ok(Self { |
| 34 | errors, |
| 35 | async_: async_.clone(), |
| 36 | wasmtime, |
| 37 | tracing: tracing.clone(), |
| 38 | mutable, |
| 39 | }) |
| 40 | } |
| 41 | pub fn get_async(&self, module: &Module, func: &InterfaceFunc) -> Asyncness { |
| 42 | self.async_.get(module.name.as_str(), func.name.as_str()) |
| 43 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected