Expand description
This module implements the inspect framework, which allows an object to expose its state for diagnostics purposes as a hierarchy. All such subtrees are linked together into a single tree for the process, and clients can query information from arbitrary portions of the tree by path.
To participate in the tree, an object implements the Inspect
trait and
arranges for itself to be inspected, usually automatically via an existing
parent-child relationship.
For most cases, users should use the derive version of Inspect
as this will automatically update the implementation as new fields are added.
Structs§
- Inspect wrapper for an atomic value (e.g.,
AtomicBool
, allowing updates. - A deferred inspection, which can provide inspection results asynchronously from a call to
inspect
. - A deferred inspection, which can provide inspection results asynchronously from a call to
inspect
. - A directory entry.
- Return value from
Deferred::external_request
, specifying parameters for a remote inspection. - An active inspection, returned by
inspect()
orInspectionBuilder::inspect()
. - A builder for an inspection request.
- An inspection request.
- A type used to build an inspection response.
- An active update operation, returned by
update()
orInspectionBuilder::update()
. - An update request, used for updating a value.
- A child inspection value. This is not constructed directly but exists to provide
From
implementations from the allowed value types. - Flags specifying additional metadata on values.
Enums§
- A node resolution error.
- The request type associated with
ExternalRequest
. - A node of an inspect result.
- The sensitivity level for an inspection node or request. Requests will only return nodes at or below their sensitivity level. For example, a request set to
SensitivityLevel::Safe
will not return nodes withSensitivityLevel::Sensitive
orSensitivityLevel::Unknown
. - The different kinds of values that can be emitted.
Traits§
- Trait implemented by objects whose state can be inspected but not mutated.
- Trait implemented by objects whose state can be inspected and mutated. Most users should not implement this trait directly, but instead derive
InspectMut
.
Functions§
- Returns an object that implements
Inspect
by callingf
with the inspection request. - Returns an object that implements
InspectMut
by callingf
with the inspection request. - Inspects
obj
for state atpath
. - Wraps an iterator for inspection, using the index in the enumeration as the field name.
- Wraps an iterator for inspection.
- Updates a value in
obj
atpath
to valuevalue
.
Derive Macros§
- Derives the
Inspect
trait for a struct or enum. - Derives the
InspectMut
trait for a struct or enum.