Crate fdf_component

Source
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 Driver trait.

Structs§

DriverContext
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 NodeProxy and provides simplified methods for adding child nodes.
NodeBuilder
A builder for adding a child node to an existing Node.
PropertyKey
A newtype wrapper that can be used to construct NodePropertyKey-compatible values for crate::NodeBuilder::add_property
PropertyValue
A newtype wrapper that can be used to construct NodePropertyValue-compatible values for crate::NodeBuilder::add_property
ProtocolConnector
A builder for connecting to a protocol in the driver’s incoming namespace.
ServiceConnector
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 calling Self::instance.
ZirconServiceOffer
A builder for creating Offer-compatible values for crate::NodeBuilder::add_offer that service a zircon fidl service.

Traits§

Driver
Entry points into a driver for starting and stopping.