#[repr(transparent)]pub struct es_respond_result_t(pub u32);Available on macOS only.
Expand description
Error conditions for responding to a message
Tuple Fields§
§0: u32Implementations§
Source§impl es_respond_result_t
Variants available from macOS 10.15.0 onwards
impl es_respond_result_t
Variants available from macOS 10.15.0 onwards
Sourcepub const ES_RESPOND_RESULT_SUCCESS: es_respond_result_t
pub const ES_RESPOND_RESULT_SUCCESS: es_respond_result_t
Success case
Sourcepub const ES_RESPOND_RESULT_ERR_INVALID_ARGUMENT: es_respond_result_t
pub const ES_RESPOND_RESULT_ERR_INVALID_ARGUMENT: es_respond_result_t
One or more invalid arguments were provided
Sourcepub const ES_RESPOND_RESULT_ERR_INTERNAL: es_respond_result_t
pub const ES_RESPOND_RESULT_ERR_INTERNAL: es_respond_result_t
Communication with the ES subsystem failed
Sourcepub const ES_RESPOND_RESULT_NOT_FOUND: es_respond_result_t
pub const ES_RESPOND_RESULT_NOT_FOUND: es_respond_result_t
The message being responded to could not be found
Sourcepub const ES_RESPOND_RESULT_ERR_DUPLICATE_RESPONSE: es_respond_result_t
pub const ES_RESPOND_RESULT_ERR_DUPLICATE_RESPONSE: es_respond_result_t
The provided message has been responded to more than once
Sourcepub const ES_RESPOND_RESULT_ERR_EVENT_TYPE: es_respond_result_t
pub const ES_RESPOND_RESULT_ERR_EVENT_TYPE: es_respond_result_t
Either an inappropriate response API was used for the event type (ensure using proper
es_respond_auth_result or
es_respond_flags_result function) or the event is
notification only.
Last value for macOS 10.15.0
Sourcepub const LAST_10_15_0: es_respond_result_t = es_respond_result_t::ES_RESPOND_RESULT_ERR_EVENT_TYPE
pub const LAST_10_15_0: es_respond_result_t = es_respond_result_t::ES_RESPOND_RESULT_ERR_EVENT_TYPE
Easily identifiable name for the last member of macOS 10.15.0
Source§impl es_respond_result_t
impl es_respond_result_t
Sourcepub fn ok(self) -> Result<(), RespondError>
pub fn ok(self) -> Result<(), RespondError>
Converts an instance of es_respond_result_t to a Result<(), RespondError>
Trait Implementations§
Source§impl Clone for es_respond_result_t
impl Clone for es_respond_result_t
Source§fn clone(&self) -> es_respond_result_t
fn clone(&self) -> es_respond_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_respond_result_t
impl Debug for es_respond_result_t
Source§impl Hash for es_respond_result_t
impl Hash for es_respond_result_t
Source§impl Ord for es_respond_result_t
impl Ord for es_respond_result_t
Source§fn cmp(&self, other: &es_respond_result_t) -> Ordering
fn cmp(&self, other: &es_respond_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_respond_result_t
impl PartialEq for es_respond_result_t
Source§impl PartialOrd for es_respond_result_t
impl PartialOrd for es_respond_result_t
impl Copy for es_respond_result_t
impl Eq for es_respond_result_t
impl StructuralPartialEq for es_respond_result_t
Auto Trait Implementations§
impl Freeze for es_respond_result_t
impl RefUnwindSafe for es_respond_result_t
impl Send for es_respond_result_t
impl Sync for es_respond_result_t
impl Unpin for es_respond_result_t
impl UnwindSafe for es_respond_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