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]
fn ok(raw: zx_status_t) -> Result<(), Status>
[src]
Returns Ok(())
if the status was OK
,
otherwise returns Err(status)
.
fn from_raw(raw: zx_status_t) -> Self
[src]
fn into_raw(self) -> zx_status_t
[src]
impl Status
[src]
const OK: Status
OK: Status = Status(sys::ZX_OK)
const INTERNAL: Status
INTERNAL: Status = Status(sys::ZX_ERR_INTERNAL)
const NOT_SUPPORTED: Status
NOT_SUPPORTED: Status = Status(sys::ZX_ERR_NOT_SUPPORTED)
const NO_RESOURCES: Status
NO_RESOURCES: Status = Status(sys::ZX_ERR_NO_RESOURCES)
const NO_MEMORY: Status
NO_MEMORY: Status = Status(sys::ZX_ERR_NO_MEMORY)
const CALL_FAILED: Status
CALL_FAILED: Status = Status(sys::ZX_ERR_CALL_FAILED)
const INTERRUPTED_RETRY: Status
INTERRUPTED_RETRY: Status = Status(sys::ZX_ERR_INTERRUPTED_RETRY)
const INVALID_ARGS: Status
INVALID_ARGS: Status = Status(sys::ZX_ERR_INVALID_ARGS)
const BAD_HANDLE: Status
BAD_HANDLE: Status = Status(sys::ZX_ERR_BAD_HANDLE)
const WRONG_TYPE: Status
WRONG_TYPE: Status = Status(sys::ZX_ERR_WRONG_TYPE)
const BAD_SYSCALL: Status
BAD_SYSCALL: Status = Status(sys::ZX_ERR_BAD_SYSCALL)
const OUT_OF_RANGE: Status
OUT_OF_RANGE: Status = Status(sys::ZX_ERR_OUT_OF_RANGE)
const BUFFER_TOO_SMALL: Status
BUFFER_TOO_SMALL: Status = Status(sys::ZX_ERR_BUFFER_TOO_SMALL)
const BAD_STATE: Status
BAD_STATE: Status = Status(sys::ZX_ERR_BAD_STATE)
const TIMED_OUT: Status
TIMED_OUT: Status = Status(sys::ZX_ERR_TIMED_OUT)
const SHOULD_WAIT: Status
SHOULD_WAIT: Status = Status(sys::ZX_ERR_SHOULD_WAIT)
const CANCELED: Status
CANCELED: Status = Status(sys::ZX_ERR_CANCELED)
const PEER_CLOSED: Status
PEER_CLOSED: Status = Status(sys::ZX_ERR_PEER_CLOSED)
const NOT_FOUND: Status
NOT_FOUND: Status = Status(sys::ZX_ERR_NOT_FOUND)
const ALREADY_EXISTS: Status
ALREADY_EXISTS: Status = Status(sys::ZX_ERR_ALREADY_EXISTS)
const ALREADY_BOUND: Status
ALREADY_BOUND: Status = Status(sys::ZX_ERR_ALREADY_BOUND)
const UNAVAILABLE: Status
UNAVAILABLE: Status = Status(sys::ZX_ERR_UNAVAILABLE)
const ACCESS_DENIED: Status
ACCESS_DENIED: Status = Status(sys::ZX_ERR_ACCESS_DENIED)
const IO: Status
IO: Status = Status(sys::ZX_ERR_IO)
const IO_REFUSED: Status
IO_REFUSED: Status = Status(sys::ZX_ERR_IO_REFUSED)
const IO_DATA_INTEGRITY: Status
IO_DATA_INTEGRITY: Status = Status(sys::ZX_ERR_IO_DATA_INTEGRITY)
const IO_DATA_LOSS: Status
IO_DATA_LOSS: Status = Status(sys::ZX_ERR_IO_DATA_LOSS)
const BAD_PATH: Status
BAD_PATH: Status = Status(sys::ZX_ERR_BAD_PATH)
const NOT_DIR: Status
NOT_DIR: Status = Status(sys::ZX_ERR_NOT_DIR)
const NOT_FILE: Status
NOT_FILE: Status = Status(sys::ZX_ERR_NOT_FILE)
const FILE_BIG: Status
FILE_BIG: Status = Status(sys::ZX_ERR_FILE_BIG)
const NO_SPACE: Status
NO_SPACE: Status = Status(sys::ZX_ERR_NO_SPACE)
const STOP: Status
STOP: Status = Status(sys::ZX_ERR_STOP)
const NEXT: Status
NEXT: Status = Status(sys::ZX_ERR_NEXT)
impl Status
[src]
fn into_io_error(self) -> Error
[src]
Trait Implementations
impl Debug for Status
[src]
impl Copy for Status
[src]
impl Clone for Status
[src]
fn clone(&self) -> Status
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for Status
[src]
fn cmp(&self, __arg_0: &Status) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for Status
[src]
fn partial_cmp(&self, __arg_0: &Status) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Status) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Status) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Status) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Status) -> bool
[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]
fn eq(&self, __arg_0: &Status) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Status) -> bool
[src]
This method tests for !=
.
impl Hash for Status
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more