pub enum ClearCacheError {
Internal,
Throttle,
Unknown(es_clear_cache_result_t),
ApiUnavailable,
}Available on macOS only.
Expand description
Clearing authorisation caches failed.
Usually constructed using
es_clear_cache_result_t::ok().
Variants§
Internal
Throttle
Unknown(es_clear_cache_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 ClearCacheError
impl Clone for ClearCacheError
Source§fn clone(&self) -> ClearCacheError
fn clone(&self) -> ClearCacheError
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 ClearCacheError
impl Debug for ClearCacheError
Source§impl Display for ClearCacheError
impl Display for ClearCacheError
Source§impl Error for ClearCacheError
impl Error for ClearCacheError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 ClearCacheError
impl Hash for ClearCacheError
Source§impl PartialEq for ClearCacheError
impl PartialEq for ClearCacheError
impl Copy for ClearCacheError
impl Eq for ClearCacheError
impl StructuralPartialEq for ClearCacheError
Auto Trait Implementations§
impl Freeze for ClearCacheError
impl RefUnwindSafe for ClearCacheError
impl Send for ClearCacheError
impl Sync for ClearCacheError
impl Unpin for ClearCacheError
impl UnwindSafe for ClearCacheError
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