#[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
Sourcepub const LAST_10_15_0: es_return_t = es_return_t::ES_RETURN_ERROR
pub const LAST_10_15_0: es_return_t = es_return_t::ES_RETURN_ERROR
Easily identifiable name for the last member of 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 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for es_return_t
impl Debug 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 · 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§impl PartialOrd for es_return_t
impl PartialOrd for es_return_t
impl Copy for es_return_t
impl Eq 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 UnwindSafe for es_return_t
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