pub fn inspect(path: &str, obj: impl InspectMut) -> InspectionExpand description
Inspects obj for state at path.
struct Obj;
impl Inspect for Obj {
fn inspect(&self, req: Request) {
req.respond().field("field", 3);
}
}
let mut inspection = inspect("field", &Obj);
block_on(inspection.resolve());
let node = inspection.results();
assert!(matches!(node, Node::Value(Value { kind: ValueKind::Signed(3), .. })));