class result
Defined at line 89 of file ../../zircon/system/ulib/zx/include/lib/zx/result.h
Specialization of status for returning a single value.
Inherits from ::fit::result<zx_status_t, T>
Functions
result<type-parameter-0-0>
public void result<type-parameter-0-0>(const base & other)
Defined at line 97 of file ../../zircon/system/ulib/zx/include/lib/zx/result.h
Explicit conversion from fit::result<zx_status_t, T>.
result<type-parameter-0-0>
public void result<type-parameter-0-0>(base && other)
Defined at line 104 of file ../../zircon/system/ulib/zx/include/lib/zx/result.h
result<type-parameter-0-0>
public void result<type-parameter-0-0>(
error
error)
Defined at line 113 of file ../../zircon/system/ulib/zx/include/lib/zx/result.h
Implicit conversion from error<zx_status_t>.
status_value
public zx_status_t status_value()
Defined at line 124 of file ../../zircon/system/ulib/zx/include/lib/zx/result.h
Returns the underlying error or ZX_OK if not in the error state. This accessor simplifies interfacing with code that uses zx_status_t directly.
status_string
public const char * status_string()
Defined at line 249 of file ../../zircon/system/ulib/zx/include/lib/zx/result.h
Returns the string representation of the status value.