template <typename Protocol>
class Connector
Defined at line 16 of file ../../sdk/lib/driver/devfs/cpp/connector.h
A helper class for implementing the Connector protocol.
This class provides type-safety over the protocol that is being connected to,
as the parent will get back a `fidl::ServerEnd
<MyProtocol
>`.
Public Methods
void Connector<Protocol> (fit::function<void (fidl::ServerEnd<Protocol>)> connect_callback)
Create the Connector. This callback will be called whenever a client attempts to
connect.
Defined at line 20 of file ../../sdk/lib/driver/devfs/cpp/connector.h
zx::result<> Bind (async_dispatcher_t * dispatcher, fidl::ServerEnd<fuchsia_device_fs::Connector> server)
Defined at line 23 of file ../../sdk/lib/driver/devfs/cpp/connector.h
zx::result<fidl::ClientEnd<fuchsia_device_fs::Connector>> Bind (async_dispatcher_t * dispatcher)
Defined at line 32 of file ../../sdk/lib/driver/devfs/cpp/connector.h
std::optional<fidl::ServerBinding<fuchsia_device_fs::Connector>> & binding ()
Defined at line 40 of file ../../sdk/lib/driver/devfs/cpp/connector.h