Enum endpoint_sec_sys::RespondError
source · pub enum RespondError {
InvalidArgument,
Internal,
MessageNotFound,
DuplicateResponse,
EventType,
Unknown(es_respond_result_t),
ApiUnavailable,
}Available on macOS only.
Expand description
Responding to a message failed.
Usually constructed using
es_respond_result_t::ok().
Variants§
InvalidArgument
Internal
MessageNotFound
DuplicateResponse
EventType
Unknown(es_respond_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 RespondError
impl Clone for RespondError
source§fn clone(&self) -> RespondError
fn clone(&self) -> RespondError
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 RespondError
impl Debug for RespondError
source§impl Display for RespondError
impl Display for RespondError
source§impl Error for RespondError
impl Error for RespondError
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 RespondError
impl Hash for RespondError
source§impl PartialEq<RespondError> for RespondError
impl PartialEq<RespondError> for RespondError
source§fn eq(&self, other: &RespondError) -> bool
fn eq(&self, other: &RespondError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for RespondError
impl Eq for RespondError
impl StructuralEq for RespondError
impl StructuralPartialEq for RespondError
Auto Trait Implementations§
impl RefUnwindSafe for RespondError
impl Send for RespondError
impl Sync for RespondError
impl Unpin for RespondError
impl UnwindSafe for RespondError
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