Shared implementation of RawUnaryReserveFuture and RawServerStreamReserveFuture. Resolves to ReservationType.
Public Types | |
| using | Reservation = ReservationType |
| using | value_type = RpcResult< Reservation > |
Public Member Functions | |
| ReserveRequestFutureBase (const ReserveRequestFutureBase &)=delete | |
| ReserveRequestFutureBase & | operator= (const ReserveRequestFutureBase &)=delete |
| bool | is_pendable () const |
| bool | is_complete () const |
| async2::Poll< value_type > | Pend (async2::Context &cx) |
Protected Member Functions | |
| ReserveRequestFutureBase (ReserveWriteFuture &&res_fut) | |
| ReserveRequestFutureBase (ReserveRequestFutureBase &&) noexcept=default | |
| ReserveRequestFutureBase & | operator= (ReserveRequestFutureBase &&) noexcept=default |
|
inline |
Polls for the request write reservation.
kOk with the reservation once buffer space is available.kClosed if the client is empty or was closed.kResourceExhausted if the call could not be allocated.kMessageTooLarge if the requested size exceeds the maximum write size.kDisconnected if the connection closed (or the client ran out of call IDs) before the reservation resolved, or kProtocolError if it closed because an endpoint broke the protocol. See Error handling.