class StatusRep

Defined at line 66 of file ../../third_party/abseil-cpp/absl/status/internal/status_internal.h

Reference-counted representation of Status data.

Public Methods

void StatusRep (absl::StatusCode code_arg, absl::string_view message_arg, std::unique_ptr<status_internal::Payloads> payloads_arg)

Defined at line 68 of file ../../third_party/abseil-cpp/absl/status/internal/status_internal.h

absl::StatusCode code ()

Defined at line 75 of file ../../third_party/abseil-cpp/absl/status/internal/status_internal.h

const std::string & message ()

Defined at line 76 of file ../../third_party/abseil-cpp/absl/status/internal/status_internal.h

void Ref ()

Ref and unref are const to allow access through a const pointer, and are

used during copying operations.

Defined at line 80 of file ../../third_party/abseil-cpp/absl/status/internal/status_internal.h

void Unref ()
absl::optional<absl::Cord> GetPayload (absl::string_view type_url)

Payload methods correspond to the same methods in absl::Status.

void SetPayload (absl::string_view type_url, absl::Cord payload)
EraseResult ErasePayload (absl::string_view type_url)
void ForEachPayload (absl::FunctionRef<void (absl::string_view, const absl::Cord &)> visitor)
std::string ToString (StatusToStringMode mode)
bool operator!= (const StatusRep & other)

Defined at line 98 of file ../../third_party/abseil-cpp/absl/status/internal/status_internal.h

bool operator== (const StatusRep & other)
absl::Nonnull<StatusRep *> CloneAndUnref ()

Returns an equivalent heap allocated StatusRep with refcount 1.

`this` is not safe to be used after calling as it may have been deleted.

Records