template <typename FidlMethod>
class Result
|Result| represents the result of calling a two-way FIDL method |Method|.
It inherits from different `fit::result` types depending on |Method|:
- When the method does not use the error syntax:
- When the method response has no body:
fit::result
<fidl
::Error>
- When the method response has a body:
fit::result
<fidl
::Error, MethodPayload>
where `fidl::Error` is a type representing any transport error or
protocol level terminal errors such as epitaphs, and |MethodPayload|
is the response type.
- When the method uses the error syntax:
- When the method response payload is an empty struct:
fit::result
<fidl
::ErrorsIn
<Method
>>
- When the method response payload is not an empty struct:
fit::result
<fidl
::ErrorsIn
<Method
>, MethodPayload>
where |MethodPayload| is the success type.
See also |fidl::ErrorsIn|.