The status returned by pw_rpc2 APIs. Wraps an RpcCode. Use RpcStatus objects instead of raw RpcCode values.
|
|
constexpr | RpcStatus (Code code) |
| |
|
constexpr bool | IsEndOfStream () const |
| |
|
constexpr bool | IsCancelled () const |
| |
|
constexpr bool | IsClosed () const |
| |
|
constexpr bool | IsWriteClosed () const |
| |
|
constexpr bool | IsDisconnected () const |
| |
|
constexpr bool | IsResourceExhausted () const |
| |
|
constexpr bool | IsUnavailable () const |
| |
|
constexpr bool | IsAborted () const |
| |
|
constexpr bool | IsUnimplemented () const |
| |
|
constexpr bool | IsMessageTooLarge () const |
| |
|
constexpr bool | IsDataError () const |
| |
|
constexpr bool | IsProtocolError () const |
| |
|
constexpr bool | ok () const noexcept |
| | Returns true if the status is the OK code.
|
| |
|
constexpr Code | code () const noexcept |
| | Returns the underlying status code.
|
| |
| constexpr void | Update (RpcStatus other) noexcept |
| |
|
constexpr void | IgnoreError () const noexcept |
| | Ignores any errors, suppressing unused-result warnings.
|
| |
| constexpr const char * | str () const |
| |
|
|
using | Code = decltype(kOkCode) |
| | The underlying status code type.
|
| |
|
constexpr | StatusBase () noexcept |
| | Defaults to kOkCode (ok() == true).
|
| |
|
constexpr | StatusBase (Code code) noexcept |
| | Explicitly construct from the underlying code.
|
| |
|
constexpr | StatusBase (const StatusBase &)=default |
| |
|
constexpr | StatusBase (StatusBase &&)=default |
| |
|
constexpr StatusBase & | operator= (const StatusBase &)=default |
| |
|
constexpr StatusBase & | operator= (StatusBase &&)=default |
| |
|
Code | code_ |
| |
The documentation for this class was generated from the following file:
- bazel-out/k8-fastbuild/bin/pw_rpc2/_pw_enum_virtual_imports/rpc_code/pw_rpc2/rpc_code.h