pub struct Status(/* private fields */);
Expand description
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.
Implementations§
Source§impl Status
impl Status
pub const OK: Status
pub const INTERNAL: Status
pub const NOT_SUPPORTED: Status
pub const NO_RESOURCES: Status
pub const NO_MEMORY: Status
pub const INTERRUPTED_RETRY: Status
pub const INVALID_ARGS: Status
pub const BAD_HANDLE: Status
pub const WRONG_TYPE: Status
pub const BAD_SYSCALL: Status
pub const OUT_OF_RANGE: Status
pub const BUFFER_TOO_SMALL: Status
pub const BAD_STATE: Status
pub const TIMED_OUT: Status
pub const SHOULD_WAIT: Status
pub const CANCELED: Status
pub const PEER_CLOSED: Status
pub const NOT_FOUND: Status
pub const ALREADY_EXISTS: Status
pub const ALREADY_BOUND: Status
pub const UNAVAILABLE: Status
pub const ACCESS_DENIED: Status
pub const IO: Status
pub const IO_REFUSED: Status
pub const IO_DATA_INTEGRITY: Status
pub const IO_DATA_LOSS: Status
pub const IO_NOT_PRESENT: Status
pub const IO_OVERRUN: Status
pub const IO_MISSED_DEADLINE: Status
pub const IO_INVALID: Status
pub const BAD_PATH: Status
pub const NOT_DIR: Status
pub const NOT_FILE: Status
pub const FILE_BIG: Status
pub const NO_SPACE: Status
pub const NOT_EMPTY: Status
pub const STOP: Status
pub const NEXT: Status
pub const ASYNC: Status
pub const PROTOCOL_NOT_SUPPORTED: Status
pub const ADDRESS_UNREACHABLE: Status
pub const ADDRESS_IN_USE: Status
pub const NOT_CONNECTED: Status
pub const CONNECTION_REFUSED: Status
pub const CONNECTION_RESET: Status
pub const CONNECTION_ABORTED: Status
Trait Implementations§
Source§impl Error for Status
impl Error for Status
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Status> for TransportError
impl From<Status> for TransportError
Source§impl Ord for Status
impl Ord for Status
Source§impl PartialOrd for Status
impl PartialOrd for Status
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more