MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / log_record_function

Method log_record_function

crates/core/src/host/instance_env.rs:258–260  ·  view source on GitHub ↗

Returns the name of the most recent reducer to be run in this environment, or `None` if no reducer is actively being invoked.

(&self)

Source from the content-addressed store, hash-verified

256 /// Returns the name of the most recent reducer to be run in this environment,
257 /// or `None` if no reducer is actively being invoked.
258 pub fn log_record_function(&self) -> Option<&str> {
259 self.func_name.as_deref()
260 }
261
262 /// Swap in a temporary function type, returning the previous one.
263 pub fn swap_func_type(&mut self, func_type: FuncCallType) -> FuncCallType {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected