Struct endpoint_sec_sys::es_return_t
source · #[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
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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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<es_return_t> for es_return_t
impl PartialEq<es_return_t> for es_return_t
source§fn eq(&self, other: &es_return_t) -> bool
fn eq(&self, other: &es_return_t) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<es_return_t> for es_return_t
impl PartialOrd<es_return_t> for es_return_t
source§fn partial_cmp(&self, other: &es_return_t) -> Option<Ordering>
fn partial_cmp(&self, other: &es_return_t) -> Option<Ordering>
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 es_return_t
impl Eq for es_return_t
impl StructuralEq for es_return_t
impl StructuralPartialEq for es_return_t
Auto Trait Implementations§
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