Enum endpoint_sec_sys::MuteTypeError
source · pub enum MuteTypeError {
Error,
Unknown(es_mute_inverted_return_t),
ApiUnavailable,
}Available on macOS and crate feature
macos_13_0_0 only.Expand description
Getting the mute type failed.
Usually constructed using es_mute_inverted_return_t::ok()
Variants§
Error
Unknown(es_mute_inverted_return_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 MuteTypeError
impl Clone for MuteTypeError
source§fn clone(&self) -> MuteTypeError
fn clone(&self) -> MuteTypeError
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 MuteTypeError
impl Debug for MuteTypeError
source§impl Display for MuteTypeError
impl Display for MuteTypeError
source§impl Error for MuteTypeError
impl Error for MuteTypeError
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 MuteTypeError
impl Hash for MuteTypeError
source§impl PartialEq<MuteTypeError> for MuteTypeError
impl PartialEq<MuteTypeError> for MuteTypeError
source§fn eq(&self, other: &MuteTypeError) -> bool
fn eq(&self, other: &MuteTypeError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for MuteTypeError
impl Eq for MuteTypeError
impl StructuralEq for MuteTypeError
impl StructuralPartialEq for MuteTypeError
Auto Trait Implementations§
impl RefUnwindSafe for MuteTypeError
impl Send for MuteTypeError
impl Sync for MuteTypeError
impl Unpin for MuteTypeError
impl UnwindSafe for MuteTypeError
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