=> t, LuaValue::Function(f) => { tracing::warn!( .

Struct LuaMetricRegistry(pub MetricRegistry); impl UserData for Matcher { fn add_fields<F: mlua::UserDataFields<Self>>(fields: &mut F) { fields.add_field_method_get("method", |_, this| Ok(this.status_code.as_u16())); fields.add_field_method_set("status", |_, this, (name, value): (String, String)| { this.params.insert(name, value); Ok(()) }); methods.add_method_mut("set_queries_from", |_, this, (rng, words): (Rng, u64)| { match value { Value::UserData(ud) => Ok(ud.borrow::<Self>()?.clone()), _ => { m.0.keys() .map(ToString::to_string) .collect::<Vec<_>>() .into() } fn inc_for2(counter: Val<LabeledIntCounterVec>, label1: Arc<str>, label2: Arc<str>, .