Expand description
Wrappers around the mechanisms of driver registration for the driver framework for implementing startup and shutdown of the driver in rust.
Modules§
- inspect_
publisher - macros
- Implementation of the [
driver_register] macro for registering driver implementations with the driver host. - testing
- Provides a driver unit testing library.
Macros§
- driver_
register - Macro for declaring a driver’s implementation of the
Drivertrait.
Structs§
- Driver
Context - The context arguments passed to the driver in its start arguments.
- Health
Alert Reporter - Lets a driver proactively report faults to the driver framework as
OnHealthAlertevents. - Health
Check Inspect - Mirrors a driver’s most recent health check result into its own Inspect hierarchy.
- Health
Check Response - The
fuchsia.driver.frameworkhealth check types used byDriver::health_checkandHealthAlertReporter, re-exported so drivers do not need a direct dependency on thefidl_nextbindings to use them. Response returned by a driver health check. - Health
Condition - The
fuchsia.driver.frameworkhealth check types used byDriver::health_checkandHealthAlertReporter, re-exported so drivers do not need a direct dependency on thefidl_nextbindings to use them. One condition detected by a driver health check. - Health
Diagnostic Item - The
fuchsia.driver.frameworkhealth check types used byDriver::health_checkandHealthAlertReporter, re-exported so drivers do not need a direct dependency on thefidl_nextbindings to use them. Key-value diagnostic property captured during a driver health check. - Incoming
- Implements access to the incoming namespace for a driver. It provides methods
for accessing incoming protocols and services by either their marker or proxy
types, and can be used as a [
Directory] with the functions in [fuchsia_component::client]. - Node
- Holds on to a
NodeProxyand provides simplified methods for adding child nodes. - Node
Builder - A builder for adding a child node to an existing
Node. - Parent
Property - A property of one of the driver’s parent nodes, as reported by
crate::DriverContext::node_properties. - Property
Value - A newtype wrapper that can be used to construct [
NodePropertyValue]-compatible values forcrate::NodeBuilder::add_property, and to read the values of the properties reported bycrate::DriverContext::node_properties. - Service
Connector - A builder for connecting to an aggregated service instance in the driver’s incoming namespace.
By default, it will connect to the default instance, named
default. You can override this by callingSelf::instance. - Service
Member Connector - Used with [
ServiceHandlerAdapter] as a connector to members of a service instance. - Service
Offer - A builder for creating [
Offer]-compatible values forcrate::NodeBuilder::add_offerthat serves a fidl service.
Enums§
- Driver
Error - Error type returned by drivers on startup.
- Health
Alert - The
fuchsia.driver.frameworkhealth check types used byDriver::health_checkandHealthAlertReporter, re-exported so drivers do not need a direct dependency on thefidl_nextbindings to use them. Payload of a proactive health alert emitted by a driver viaOnHealthAlert. “Upstream” is what the driver depends on (parents: buses, clocks, power domains, composite parents). “Downstream” is what depends on the driver (children / consumers). - Health
Check Error - The
fuchsia.driver.frameworkhealth check types used byDriver::health_checkandHealthAlertReporter, re-exported so drivers do not need a direct dependency on thefidl_nextbindings to use them. Error codes returned when a health check cannot be completed. - Health
Check Request - The
fuchsia.driver.frameworkhealth check types used byDriver::health_checkandHealthAlertReporter, re-exported so drivers do not need a direct dependency on thefidl_nextbindings to use them. Specifies the depth and latency budget of a driver health check. - Health
Diagnostic Value - The
fuchsia.driver.frameworkhealth check types used byDriver::health_checkandHealthAlertReporter, re-exported so drivers do not need a direct dependency on thefidl_nextbindings to use them. Diagnostic value returned in a HealthCheckResponse. - Health
Status - The
fuchsia.driver.frameworkhealth check types used byDriver::health_checkandHealthAlertReporter, re-exported so drivers do not need a direct dependency on thefidl_nextbindings to use them. Operational health status reported for a driver or condition.
Constants§
- HEALTH_
INSPECT_ NODE_ NAME - Name of the Inspect node that holds the most recent health check result or self-reported
fault. Matches the C++ driver SDK (
root/driver_health_check).
Traits§
- Driver
- Entry points into a driver for starting and stopping.
Functions§
- record_
health_ check_ to_ inspect - Records the result of a health check under a new
HEALTH_INSPECT_NODE_NAMEchild ofparentand returns it. Dropping the returned node removes the record again.
Type Aliases§
- Health
Check Result - The result of a single health check.
- Service
Instance - A type alias representing a service instance with members that can be connected to using the
fidl_nextbindings.