Functions

  • template <typename ErrorType>
    zx_status_t FidlErrorToStatus (const ErrorType & e)

    Retrieve the underlying zx_status_t from a FIDL error, which may be either a domain or framework

    error. This assumes that the type of the domain_error is a zx_status_t, not a domain-specific

    error enum.

    Defined at line 20 of file ../../src/connectivity/wlan/drivers/lib/fidl-bridge/cpp/include/wlan/drivers/fidl_bridge.h

  • template <typename FidlMethod, typename AsyncCompleter>
    auto ForwardResult (AsyncCompleter completer, cpp20::source_location loc)

    Returns a lambda that can be used as the callback passed to |Then| or |ThenExactlyOnce| on the

    return value from making an async FIDL request over |bridge_client_|.

    The returned lambda will forward the result to the provided |completer|.

    Framework errors that result in channel closure are propagated by closing the completer with

    an epitaph, which results in closing the underlying transport.

    Framework errors that do not result in channel closure are either:

    - Returned as a domain error if |FidlMethod| has one.

    - Logged then ignored if |FidlMethod| does not have a domain error. If |FidlMethod| returns a

    response to the caller, then a default-initialized response is returned.

    Defined at line 35 of file ../../src/connectivity/wlan/drivers/lib/fidl-bridge/cpp/include/wlan/drivers/fidl_bridge.h

  • template <typename FidlMethodtypename AsyncCompleter>
    auto ForwardWireResult (AsyncCompleter completerfdf::Arena arenacpp20::source_location loc)

    Defined at line 82 of file ../../src/connectivity/wlan/drivers/lib/fidl-bridge/cpp/include/wlan/drivers/fidl_bridge.h