Enum endpoint_sec_sys::NewClientError
source · pub enum NewClientError {
InvalidArgument,
Internal,
NotEntitled,
NotPermitted,
NotPrivileged,
TooManyClients,
Unknown(es_new_client_result_t),
ApiUnavailable,
}Available on macOS only.
Expand description
Creating a new client failed.
Usually constructed using
es_new_client_result_t::ok().
Variants§
InvalidArgument
Internal
NotEntitled
NotPermitted
NotPrivileged
TooManyClients
Available on crate feature
macos_10_15_1 only.Unknown(es_new_client_result_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 NewClientError
impl Clone for NewClientError
source§fn clone(&self) -> NewClientError
fn clone(&self) -> NewClientError
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 NewClientError
impl Debug for NewClientError
source§impl Display for NewClientError
impl Display for NewClientError
source§impl Error for NewClientError
impl Error for NewClientError
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 NewClientError
impl Hash for NewClientError
source§impl PartialEq<NewClientError> for NewClientError
impl PartialEq<NewClientError> for NewClientError
source§fn eq(&self, other: &NewClientError) -> bool
fn eq(&self, other: &NewClientError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for NewClientError
impl Eq for NewClientError
impl StructuralEq for NewClientError
impl StructuralPartialEq for NewClientError
Auto Trait Implementations§
impl RefUnwindSafe for NewClientError
impl Send for NewClientError
impl Sync for NewClientError
impl Unpin for NewClientError
impl UnwindSafe for NewClientError
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