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 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 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)>
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 RespondError
impl Hash for RespondError
Source§impl PartialEq for RespondError
impl PartialEq for RespondError
impl Copy for RespondError
impl Eq for RespondError
impl StructuralPartialEq for RespondError
Auto Trait Implementations§
impl Freeze for RespondError
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