#[repr(transparent)]pub struct es_return_t(pub u32);Available on macOS only.
Expand description
Return value for functions that can only fail in one way
Tuple Fields§
§0: u32Implementations§
Source§impl es_return_t
Variants available from macOS 10.15.0 onwards
impl es_return_t
Variants available from macOS 10.15.0 onwards
Sourcepub const ES_RETURN_SUCCESS: es_return_t
pub const ES_RETURN_SUCCESS: es_return_t
Function was successful
Sourcepub const ES_RETURN_ERROR: es_return_t
pub const ES_RETURN_ERROR: es_return_t
Function failed
Last value for macOS 10.15.0
Source§impl es_return_t
impl es_return_t
Sourcepub fn ok(self) -> Result<(), ReturnError>
pub fn ok(self) -> Result<(), ReturnError>
Converts an instance of es_return_t to a Result<(), ReturnError>
Trait Implementations§
Source§impl Clone for es_return_t
impl Clone for es_return_t
Source§fn clone(&self) -> es_return_t
fn clone(&self) -> es_return_t
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 es_return_t
Source§impl Debug for es_return_t
impl Debug for es_return_t
impl Eq for es_return_t
Source§impl Hash for es_return_t
impl Hash for es_return_t
Source§impl Ord for es_return_t
impl Ord for es_return_t
Source§fn cmp(&self, other: &es_return_t) -> Ordering
fn cmp(&self, other: &es_return_t) -> 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
Source§impl PartialEq for es_return_t
impl PartialEq for es_return_t
Source§fn eq(&self, other: &es_return_t) -> bool
fn eq(&self, other: &es_return_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for es_return_t
impl PartialOrd for es_return_t
impl StructuralPartialEq for es_return_t
Auto Trait Implementations§
impl Freeze for es_return_t
impl RefUnwindSafe for es_return_t
impl Send for es_return_t
impl Sync for es_return_t
impl Unpin for es_return_t
impl UnsafeUnpin for es_return_t
impl UnwindSafe for es_return_t
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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