class result

Base type.

class result

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.

class result

class result

Defined at line 135 of file ../../zircon/system/ulib/zx/include/lib/zx/result.h

Specialization of status for empty value type.

Inherits from ::fit::result<zx_status_t>

Functions

status_string

public const char * status_string()

Defined at line 8 of file ../../zircon/system/ulib/zx/status_string.cc

Returns the string representation of the status value.

result

public void result( result other)

Defined at line 143 of file ../../zircon/system/ulib/zx/include/lib/zx/result.h

Explicit conversion from fit::result<zx_status_t>.

result

public void result( error error)

Defined at line 152 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 163 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.