Struct fuchsia_zircon::Status [] [src]

#[repr(C)]
pub struct Status(_);

Status type indicating the result of a Fuchsia syscall.

This type is generally used to indicate the reason for an error. While this type can contain Status::OK (ZX_OK in C land), elements of this type are generally constructed using the ok method, which checks for ZX_OK and returns a Result<(), Status> appropriately.

Methods

impl Status
[src]

[src]

Returns Ok(()) if the status was OK, otherwise returns Err(status).

[src]

[src]

impl Status
[src]

OK: Status = Status(sys::ZX_OK)

INTERNAL: Status = Status(sys::ZX_ERR_INTERNAL)

NOT_SUPPORTED: Status = Status(sys::ZX_ERR_NOT_SUPPORTED)

NO_RESOURCES: Status = Status(sys::ZX_ERR_NO_RESOURCES)

NO_MEMORY: Status = Status(sys::ZX_ERR_NO_MEMORY)

CALL_FAILED: Status = Status(sys::ZX_ERR_CALL_FAILED)

INTERRUPTED_RETRY: Status = Status(sys::ZX_ERR_INTERRUPTED_RETRY)

INVALID_ARGS: Status = Status(sys::ZX_ERR_INVALID_ARGS)

BAD_HANDLE: Status = Status(sys::ZX_ERR_BAD_HANDLE)

WRONG_TYPE: Status = Status(sys::ZX_ERR_WRONG_TYPE)

BAD_SYSCALL: Status = Status(sys::ZX_ERR_BAD_SYSCALL)

OUT_OF_RANGE: Status = Status(sys::ZX_ERR_OUT_OF_RANGE)

BUFFER_TOO_SMALL: Status = Status(sys::ZX_ERR_BUFFER_TOO_SMALL)

BAD_STATE: Status = Status(sys::ZX_ERR_BAD_STATE)

TIMED_OUT: Status = Status(sys::ZX_ERR_TIMED_OUT)

SHOULD_WAIT: Status = Status(sys::ZX_ERR_SHOULD_WAIT)

CANCELED: Status = Status(sys::ZX_ERR_CANCELED)

PEER_CLOSED: Status = Status(sys::ZX_ERR_PEER_CLOSED)

NOT_FOUND: Status = Status(sys::ZX_ERR_NOT_FOUND)

ALREADY_EXISTS: Status = Status(sys::ZX_ERR_ALREADY_EXISTS)

ALREADY_BOUND: Status = Status(sys::ZX_ERR_ALREADY_BOUND)

UNAVAILABLE: Status = Status(sys::ZX_ERR_UNAVAILABLE)

ACCESS_DENIED: Status = Status(sys::ZX_ERR_ACCESS_DENIED)

IO: Status = Status(sys::ZX_ERR_IO)

IO_REFUSED: Status = Status(sys::ZX_ERR_IO_REFUSED)

IO_DATA_INTEGRITY: Status = Status(sys::ZX_ERR_IO_DATA_INTEGRITY)

IO_DATA_LOSS: Status = Status(sys::ZX_ERR_IO_DATA_LOSS)

BAD_PATH: Status = Status(sys::ZX_ERR_BAD_PATH)

NOT_DIR: Status = Status(sys::ZX_ERR_NOT_DIR)

NOT_FILE: Status = Status(sys::ZX_ERR_NOT_FILE)

FILE_BIG: Status = Status(sys::ZX_ERR_FILE_BIG)

NO_SPACE: Status = Status(sys::ZX_ERR_NO_SPACE)

STOP: Status = Status(sys::ZX_ERR_STOP)

NEXT: Status = Status(sys::ZX_ERR_NEXT)

impl Status
[src]

Trait Implementations

impl Debug for Status
[src]

[src]

Formats the value using the given formatter.

impl Copy for Status
[src]

impl Clone for Status
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for Status
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for Status
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for Status
[src]

impl PartialEq for Status
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Hash for Status
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl From<ErrorKind> for Status
[src]

[src]

Performs the conversion.

impl From<Error> for Status
[src]

[src]

Performs the conversion.

impl From<NulError> for Status
[src]

[src]

Performs the conversion.