Expand description
Wrappers around the mechanisms of driver registration for the driver framework for implementing startup and shutdown of the driver in rust.
Modules§
- macros
- Implementation of the [
driver_register] macro for registering driver implementations with the driver host.
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.
- 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. - Property
Value - A newtype wrapper that can be used to construct [
NodePropertyValue]-compatible values forcrate::NodeBuilder::add_property - 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.
Traits§
- Driver
- Entry points into a driver for starting and stopping.
Type Aliases§
- Service
Instance - A type alias representing a service instance with members that can be connected to using the
fidl_nextbindings.