Non-templated base class for ResponseFuture<Response>.
Public Member Functions | |
| void | Cancel () |
Public Member Functions inherited from pw::rpc2::internal::ReadFutureBase | |
| ReadFutureBase (const ReadFutureBase &)=delete | |
| ReadFutureBase & | operator= (const ReadFutureBase &)=delete |
Public Member Functions inherited from pw::rpc2::internal::FutureBase | |
| FutureBase (const FutureBase &)=delete | |
| FutureBase & | operator= (const FutureBase &)=delete |
| constexpr bool | is_pendable () const |
| constexpr bool | is_complete () const |
Protected Member Functions | |
| ResponseFutureBase (IntrusivePtr< Call > &&call) | |
| ResponseFutureBase (ResponseFutureBase &&) noexcept=default | |
| ResponseFutureBase & | operator= (ResponseFutureBase &&) noexcept=default |
Protected Member Functions inherited from pw::rpc2::internal::ReadFutureBase | |
| ReadFutureBase (const IntrusivePtr< Call > &call) | |
| ReadFutureBase (IntrusivePtr< Call > &&call) | |
| ReadFutureBase (ReadFutureBase &&other) noexcept=default | |
| ReadFutureBase & | operator= (ReadFutureBase &&other) noexcept |
| async2::Poll< RpcResult< ConstBuf > > | PendRaw (async2::Context &cx) |
| void | PendAndDeserialize (async2::Context &cx, void *result_out, DeserializeFn deserialize) |
Protected Member Functions inherited from pw::rpc2::internal::FutureBase | |
| constexpr | FutureBase (async2::FutureState::Pending) |
| constexpr | FutureBase (async2::FutureState state) |
| constexpr | FutureBase (FutureBase &&) noexcept=default |
| constexpr FutureBase & | operator= (FutureBase &&) noexcept=default |
| constexpr void | mark_pending () |
| void | mark_complete () |
|
inline |
Cancels the call: sends a cancellation to the server and completes the call locally with kCancelled. A pending or later Pend() resolves to kCancelled unless the response has already arrived. No-op if the call has already ended or this future has no call.