Enum endpoint_sec_sys::ReturnError
source · pub enum ReturnError {
Error,
Unknown(es_return_t),
ApiUnavailable,
}Available on macOS only.
Expand description
Basic error without additional informations.
Usually constructed using
es_return_t::ok().
Variants§
Error
See ES_RETURN_ERROR
Unknown(es_return_t)
Catches new variants in the C enum
Used to signal a call to an unavailable API, either because it was removed or because it is only available in higher versions (eg 12.0+ when running on macOS 11.0)
Trait Implementations§
source§impl Clone for ReturnError
impl Clone for ReturnError
source§fn clone(&self) -> ReturnError
fn clone(&self) -> ReturnError
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 ReturnError
impl Debug for ReturnError
source§impl Display for ReturnError
impl Display for ReturnError
source§impl Error for ReturnError
impl Error for ReturnError
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 Hash for ReturnError
impl Hash for ReturnError
source§impl PartialEq<ReturnError> for ReturnError
impl PartialEq<ReturnError> for ReturnError
source§fn eq(&self, other: &ReturnError) -> bool
fn eq(&self, other: &ReturnError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ReturnError
impl Eq for ReturnError
impl StructuralEq for ReturnError
impl StructuralPartialEq for ReturnError
Auto Trait Implementations§
impl RefUnwindSafe for ReturnError
impl Send for ReturnError
impl Sync for ReturnError
impl Unpin for ReturnError
impl UnwindSafe for ReturnError
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