fidl::Status

Summary

Inheritance

Direct Known Subclasses:fidl::BaseWireResult< FidlMethod, std::enable_if_t< FidlMethod::kHasServerToClient &&!FidlMethod::kHasServerToClientBody, void > >, fidl::BaseWireResult< FidlMethod, std::enable_if_t< FidlMethod::kHasServerToClient &&FidlMethod::kHasServerToClientBody &&!MethodHasUnwrapAccessors< FidlMethod >(), void > >, fidl::BaseWireResult< FidlMethod, std::enable_if_t< FidlMethod::kHasServerToClient &&MethodHasUnwrapAccessors< FidlMethod >(), void > >, fidl::IncomingHeaderAndMessage, fidl::OneWayStatus, fidl::OutgoingMessage, fidl::UnbindInfo

Constructors and Destructors

Status()
Status(const Status & result)
~Status()

Public functions

FormatDescription() const
std::string
error() const
constexpr const Status &
is_canceled() const
constexpr bool
is_dispatcher_shutdown() const
constexpr bool
is_peer_closed() const
constexpr bool
lossy_description() const
const char *
ok() const
constexpr bool
operator=(const Status & result)=default
constexpr Status &
reason() const
constexpr::fidl::Reason
status() const
constexpr zx_status_t
status_string() const
const char *
underlying_reason() const
constexpr std::optional<::fidl::Reason >

Public static functions

Canceled(fidl::UnbindInfo cause)
DecodeError(zx_status_t status, const char *error_message)
constexpr Status
EncodeError(zx_status_t status, const char *error_message)
constexpr Status
Ok()
constexpr Status
PeerClosedWhileReading(zx_status_t status)
constexpr Status
PendingTwoWayCallPreventsUnbind()
constexpr Status
TransportError(zx_status_t status, const char *error_message)
constexpr Status
Unbound()
constexpr Status
UnexpectedMessage(zx_status_t status, const char *error_message)
constexpr Status
UnknownMethod()
constexpr Status
UnknownOrdinal()
constexpr Status

Protected functions

FormatImpl(char *destination, size_t length, bool from_unbind_info) const
size_t
SetStatus(const Status & other)
constexpr void
error_address()
constexpr const char **
reason_description() const
const char *
underlying_reason_description() const
const char *

Public functions

FormatDescription

std::string FormatDescription() const 

Status

constexpr Status()=default

Status

constexpr Status(
  const Status & result
)=default

error

constexpr const Status & error() const 

is_canceled

constexpr bool is_canceled() const 

is_dispatcher_shutdown

constexpr bool is_dispatcher_shutdown() const 

is_peer_closed

constexpr bool is_peer_closed() const 

lossy_description

const char * lossy_description() const 

ok

constexpr bool ok() const 

operator=

constexpr Status & operator=(
  const Status & result
)=default

reason

constexpr::fidl::Reason reason() const 

status

constexpr zx_status_t status() const 

status_string

const char * status_string() const 

underlying_reason

constexpr std::optional<::fidl::Reason > underlying_reason() const 

~Status

 ~Status()=default

Public static functions

Canceled

Status Canceled(
  fidl::UnbindInfo cause
)

DecodeError

constexpr Status DecodeError(
  zx_status_t status,
  const char *error_message
)

EncodeError

constexpr Status EncodeError(
  zx_status_t status,
  const char *error_message
)

Ok

constexpr Status Ok()

PeerClosedWhileReading

constexpr Status PeerClosedWhileReading(
  zx_status_t status
)

PendingTwoWayCallPreventsUnbind

constexpr Status PendingTwoWayCallPreventsUnbind()

TransportError

constexpr Status TransportError(
  zx_status_t status,
  const char *error_message
)

Unbound

constexpr Status Unbound()

UnexpectedMessage

constexpr Status UnexpectedMessage(
  zx_status_t status,
  const char *error_message
)

UnknownMethod

constexpr Status UnknownMethod()

UnknownOrdinal

constexpr Status UnknownOrdinal()

Protected functions

FormatImpl

size_t FormatImpl(
  char *destination,
  size_t length,
  bool from_unbind_info
) const 

SetStatus

constexpr void SetStatus(
  const Status & other
)

error_address

constexpr const char ** error_address()

reason_description

const char * reason_description() const 

underlying_reason_description

const char * underlying_reason_description() const