Struct objc::MessageError
source · pub struct MessageError(_);
Expand description
An error encountered while attempting to send a message.
Currently, an error may be returned in two cases:
- an Objective-C exception is thrown and the
exception
feature is enabled - the encodings of the arguments do not match the encoding of the method
and the
verify_message
feature is enabled
Trait Implementations§
source§impl Debug for MessageError
impl Debug for MessageError
source§impl Display for MessageError
impl Display for MessageError
source§impl Error for MessageError
impl Error for MessageError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl RefUnwindSafe for MessageError
impl Send for MessageError
impl Sync for MessageError
impl Unpin for MessageError
impl UnwindSafe for MessageError
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