Struct GenericClient::FutureAndRequestId
Defined in File generic_client.hpp
Nested Relationships
This struct is a nested type of Class GenericClient.
Inheritance Relationships
Base Type
public rclcpp::detail::FutureAndRequestId< Future >
(Template Struct FutureAndRequestId)
Struct Documentation
-
struct FutureAndRequestId : public rclcpp::detail::FutureAndRequestId<Future>
A convenient GenericClient::Future and request id pair.
Public members:
future: a std::future<void *>.
request_id: the request id associated with the future.
All the other methods are equivalent to the ones std::future provides.
Public Functions
See std::future::share().
-
FutureAndRequestId(FutureAndRequestId &&other) noexcept = default
Move constructor.
-
FutureAndRequestId(const FutureAndRequestId &other) = delete
Deleted copy constructor, each instance is a unique owner of the future.
-
FutureAndRequestId &operator=(FutureAndRequestId &&other) noexcept = default
Move assignment.
-
FutureAndRequestId &operator=(const FutureAndRequestId &other) = delete
Deleted copy assignment, each instance is a unique owner of the future.
-
~FutureAndRequestId() = default
Destructor.