Struct fidl::handle::fuchsia_handles::Status
source · 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)>
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 PartialEq for Status
impl PartialEq for Status
source§impl PartialOrd for Status
impl PartialOrd for Status
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)