Struct fruity__bbqsrc::foundation::NSErrorRecoveryAttempting [−][src]
#[repr(C)]pub struct NSErrorRecoveryAttempting<'data>(pub NSObject<'data>);
Expand description
A set of methods that provide options to recover from an error.
This type is returned by NSError::recovery_attempter
.
This informal protocol provides methods that allow your application to
attempt to recover from an error. These methods are invoked when an
NSError
is returned that specifies the implementing object as the
error recoveryAttempter and the user has selected one of the error’s
localized recovery options.
The method invoked depends on how the error is presented to the user:
-
If the error is presented in a document-modal sheet,
attempt_recovery_with
is invoked. -
If the error is presented in an application-modal dialog,
attempt_recovery
is invoked.
See documentation.
Implementations
pub fn attempt_recovery(
&self,
error: &NSError<'_>,
recovery_option_index: NSUInteger
) -> bool
pub fn attempt_recovery(
&self,
error: &NSError<'_>,
recovery_option_index: NSUInteger
) -> bool
Attempts a recovery from an error noted in an application-modal dialog.
See documentation.
pub unsafe fn attempt_recovery_with(
&self,
error: &NSError<'_>,
recovery_option_index: NSUInteger,
delegate: Option<&ObjCObject<'_>>,
did_recover_selector: Option<Sel>,
context_info: *mut c_void
)
pub unsafe fn attempt_recovery_with(
&self,
error: &NSError<'_>,
recovery_option_index: NSUInteger,
delegate: Option<&ObjCObject<'_>>,
did_recover_selector: Option<Sel>,
context_info: *mut c_void
)
Attempts a recovery from an error noted in a document-modal sheet.
See documentation.
Trait Implementations
Performs the conversion.
Performs the conversion.
Casts self
into a type-erased Objective-C object.
Auto Trait Implementations
impl<'data> RefUnwindSafe for NSErrorRecoveryAttempting<'data>
impl<'data> Send for NSErrorRecoveryAttempting<'data>
impl<'data> Sync for NSErrorRecoveryAttempting<'data>
impl<'data> Unpin for NSErrorRecoveryAttempting<'data>
impl<'data> UnwindSafe for NSErrorRecoveryAttempting<'data>