#[repr(transparent)]pub struct es_clear_cache_result_t(pub u32);Available on macOS only.
Expand description
Error conditions for clearing the authorisation caches
Tuple Fields§
§0: u32Implementations§
Source§impl es_clear_cache_result_t
Variants available from macOS 10.15.0 onwards
impl es_clear_cache_result_t
Variants available from macOS 10.15.0 onwards
Sourcepub const ES_CLEAR_CACHE_RESULT_SUCCESS: es_clear_cache_result_t
pub const ES_CLEAR_CACHE_RESULT_SUCCESS: es_clear_cache_result_t
Success case
Sourcepub const ES_CLEAR_CACHE_RESULT_ERR_INTERNAL: es_clear_cache_result_t
pub const ES_CLEAR_CACHE_RESULT_ERR_INTERNAL: es_clear_cache_result_t
Communication with the ES subsystem failed
Sourcepub const ES_CLEAR_CACHE_RESULT_ERR_THROTTLE: es_clear_cache_result_t
pub const ES_CLEAR_CACHE_RESULT_ERR_THROTTLE: es_clear_cache_result_t
Rate of calls is too high. Slow down.
Last value for macOS 10.15.0
Sourcepub const LAST_10_15_0: es_clear_cache_result_t = es_clear_cache_result_t::ES_CLEAR_CACHE_RESULT_ERR_THROTTLE
pub const LAST_10_15_0: es_clear_cache_result_t = es_clear_cache_result_t::ES_CLEAR_CACHE_RESULT_ERR_THROTTLE
Easily identifiable name for the last member of macOS 10.15.0
Source§impl es_clear_cache_result_t
impl es_clear_cache_result_t
Sourcepub fn ok(self) -> Result<(), ClearCacheError>
pub fn ok(self) -> Result<(), ClearCacheError>
Converts an instance of es_clear_cache_result_t to a Result<(), ClearCacheError>
Trait Implementations§
Source§impl Clone for es_clear_cache_result_t
impl Clone for es_clear_cache_result_t
Source§fn clone(&self) -> es_clear_cache_result_t
fn clone(&self) -> es_clear_cache_result_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_clear_cache_result_t
impl Debug for es_clear_cache_result_t
Source§impl Hash for es_clear_cache_result_t
impl Hash for es_clear_cache_result_t
Source§impl Ord for es_clear_cache_result_t
impl Ord for es_clear_cache_result_t
Source§fn cmp(&self, other: &es_clear_cache_result_t) -> Ordering
fn cmp(&self, other: &es_clear_cache_result_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_clear_cache_result_t
impl PartialEq for es_clear_cache_result_t
Source§fn eq(&self, other: &es_clear_cache_result_t) -> bool
fn eq(&self, other: &es_clear_cache_result_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for es_clear_cache_result_t
impl PartialOrd for es_clear_cache_result_t
impl Copy for es_clear_cache_result_t
impl Eq for es_clear_cache_result_t
impl StructuralPartialEq for es_clear_cache_result_t
Auto Trait Implementations§
impl Freeze for es_clear_cache_result_t
impl RefUnwindSafe for es_clear_cache_result_t
impl Send for es_clear_cache_result_t
impl Sync for es_clear_cache_result_t
impl Unpin for es_clear_cache_result_t
impl UnwindSafe for es_clear_cache_result_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