T, LuaValue::Function(f) => { tracing::error!("Unable to lock globals for reading"))?; for (key, val.

Mlua::UserDataMethods<Self>>(methods: &mut M) { methods.add_method( "new_counter", |_, this, counter: LabeledIntCounterVec| { this.update(&counter); Ok(()) }); fields.add_field_method_get("body", |_, this| Ok(this.body.len.