Reservation credential returned by a successful reserve operation. 更多...
#include <ResourceAccount.h>
Public 成员函数 | |
| bool | isValid () const noexcept |
| Whether this credential has valid account/id identity and cost. | |
Public 属性 | |
| AccountNonce | account |
| ReservationId | id |
| CostSpec | cost |
详细描述
Reservation credential returned by a successful reserve operation.
The credential is a value, but the account owns its lifecycle state. Copies of the credential cannot double-spend: the account rejects a second commit/rollback with Conflict. It is only valid for the account that issued it and while that account remains alive.
在文件 ResourceAccount.h 第 279 行定义.
成员函数说明
◆ isValid()
|
inlinenoexcept |
Whether this credential has valid account/id identity and cost.
在文件 ResourceAccount.h 第 285 行定义.
引用了 account, cost, eve::resource::CostSpec::isValid() , 以及 eve::resource::AccountNonce::value().
被这些函数引用 eve::attributes::AttributeResourceAccountAdapter::commit() , 以及 eve::attributes::AttributeResourceAccountAdapter::rollback().
类成员变量说明
◆ account
| AccountNonce eve::resource::Reservation::account |
在文件 ResourceAccount.h 第 280 行定义.
被这些函数引用 isValid().
◆ cost
| CostSpec eve::resource::Reservation::cost |
◆ id
| ReservationId eve::resource::Reservation::id |
在文件 ResourceAccount.h 第 281 行定义.
该结构体的文档由以下文件生成:
- src/engine/common/ResourceAccount.h