folly::Future<std::pair< ::apache::thrift::sasl::SaslReply, std::unique_ptr<apache::thrift::transport::THeader>>> SaslAuthServiceAsyncClient::header_future_authFirstRequest(apache::thrift::RpcOptions& rpcOptions, const ::apache::thrift::sasl::SaslStart& saslStart) { folly::Promise<std::pair< ::apache::thrift::sasl::SaslReply, std::unique_ptr<apache::thrift::transport::THeader>>> _promise; auto _future = _promise.getFuture(); auto callback = folly::make_unique<apache::thrift::HeaderFutureCallback< ::apache::thrift::sasl::SaslReply>>(std::move(_promise), recv_wrapped_authFirstRequest, channel_); authFirstRequest(rpcOptions, std::move(callback), saslStart); return _future; }
void SaslAuthServiceAsyncClient::authFirstRequest(std::function<void (::apache::thrift::ClientReceiveState&&)> callback, const ::apache::thrift::sasl::SaslStart& saslStart) { authFirstRequest(folly::make_unique<apache::thrift::FunctionReplyCallback>(std::move(callback)), saslStart); }
folly::Future<std::unique_ptr< ::apache::thrift::sasl::SaslReply>> SaslAuthServiceSvIf::future_authFirstRequest(std::unique_ptr< ::apache::thrift::sasl::SaslStart> saslStart) { return apache::thrift::detail::si::future_returning_uptr([&]( ::apache::thrift::sasl::SaslReply& _return) { authFirstRequest(_return, std::move(saslStart)); }); }