pub fn encode_response_flexible<T: Body>(
header: TransactionHeader,
body: T,
) -> Result<Vec<u8>, Error>where
for<'a> <<T as Body>::MarkerInResultUnion as ValueTypeMarker>::Borrowed<'a>: Encode<T::MarkerInResultUnion, NoHandleResourceDialect>,
Expand description
Encodes a FIDL transaction response for a flexible two-way method without error syntax. Wraps the body in a result union set to ordinal 1 (success).