Struct ErrorStatus
pub struct ErrorStatus(/* private fields */);Expand description
A non-zero Zircon status code representing an error.
Because this wraps a NonZero<sys::zx_status_t>, Result<T, ErrorStatus> has a niche at 0
(ZX_OK), guaranteeing that Result<(), ErrorStatus> has the exact same 4-byte memory layout
and machine ABI as sys::zx_status_t (Status).
Implementations§
§impl ErrorStatus
impl ErrorStatus
Trait Implementations§
§impl Clone for ErrorStatus
impl Clone for ErrorStatus
§fn clone(&self) -> ErrorStatus
fn clone(&self) -> ErrorStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ErrorStatus
§impl Debug for ErrorStatus
impl Debug for ErrorStatus
§impl Display for ErrorStatus
impl Display for ErrorStatus
impl Eq for ErrorStatus
§impl Error for ErrorStatus
impl Error for ErrorStatus
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()
§impl From<ErrorStatus> for Status
impl From<ErrorStatus> for Status
§fn from(err: ErrorStatus) -> Status
fn from(err: ErrorStatus) -> Status
Converts to this type from the input type.
§impl From<Status> for ErrorStatus
impl From<Status> for ErrorStatus
§fn from(status: Status) -> ErrorStatus
fn from(status: Status) -> ErrorStatus
Converts to this type from the input type.
§impl Hash for ErrorStatus
impl Hash for ErrorStatus
§impl Ord for ErrorStatus
impl Ord for ErrorStatus
§fn cmp(&self, other: &ErrorStatus) -> Ordering
fn cmp(&self, other: &ErrorStatus) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for ErrorStatus
impl PartialEq for ErrorStatus
§impl PartialOrd for ErrorStatus
impl PartialOrd for ErrorStatus
impl StructuralPartialEq for ErrorStatus
Auto Trait Implementations§
impl Freeze for ErrorStatus
impl RefUnwindSafe for ErrorStatus
impl Send for ErrorStatus
impl Sync for ErrorStatus
impl Unpin for ErrorStatus
impl UnsafeUnpin for ErrorStatus
impl UnwindSafe for ErrorStatus
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§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
Source§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to Self