class AsyncInitializedDeviceServer
Defined at line 204 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h
Asynchronously initialized Device Server. Use this when sync/blocking calls on the current
dispatcher is not allowed or if your driver is already structured for async code and you want
the performance gains of async.
See Begin() for further details.
# Thread safety
This class is thread-unsafe.
Public Methods
std::vector<fuchsia_driver_framework::wire::Offer> CreateOffers2 (fidl::ArenaBase & arena)
Create offers to offer this interface to another component.
Defined at line 247 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h
std::vector<fuchsia_driver_framework::Offer> CreateOffers2 ()
Defined at line 251 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h
const compat::DeviceServer & inner ()
Defined at line 256 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h
compat::DeviceServer & inner ()
Defined at line 261 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h
void reset ()
Defined at line 266 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h
void Begin (const std::shared_ptr<fdf::Namespace> & incoming, const std::shared_ptr<fdf::OutgoingDirectory> & outgoing, const std::optional<std::string> & node_name, std::string_view child_node_name, fit::callback<void (zx::result<>)> callback, const ForwardMetadata & forward_metadata, std::optional<DeviceServer::BanjoConfig> banjo_config, const std::optional<std::string> & child_additional_path)
Begin initialization. Will internally query the parent(s) for forwarded
metadata and serve on the outgoing directory when it is ready. The given callback is called
when the async initialization has been completed.
|incoming|, |outgoing|, |node_name| can be accessed through the
DriverBase methods of the same name.
|child_node_name| is the name given to the |fdf::NodeAddArgs|'s name field for the target node
of this server.
|callback| is called when the initialization is complete.
|child_additional_path| is used in the case that there are intermediary nodes that are
owned by this driver before the target child node. Each intermediate node should be separated
with a '/' and it should end with a trailing '/'. Eg: "node-a/node-b/"
|forward_metadata| contains information about the metadata to forward from the parent(s).
|banjo_config| contains the banjo protocol information that this should serve.
Defined at line 355 of file ../../sdk/lib/driver/compat/cpp/device_server.cc