Struct fruity::foundation::NSErrorUserInfoKey
source · [−]#[repr(C)]pub struct NSErrorUserInfoKey(pub NSString<'static>);
Expand description
Keys that may exist in an NSError
user info dictionary.
See documentation.
Tuple Fields
0: NSString<'static>
Implementations
sourceimpl NSErrorUserInfoKey
impl NSErrorUserInfoKey
sourcepub fn ns_url() -> &'static NSErrorUserInfoKey
pub fn ns_url() -> &'static NSErrorUserInfoKey
The corresponding value is an [NSURL
].
See documentation.
sourcepub fn file_path() -> &'static NSErrorUserInfoKey
pub fn file_path() -> &'static NSErrorUserInfoKey
sourcepub fn help_anchor() -> &'static NSErrorUserInfoKey
pub fn help_anchor() -> &'static NSErrorUserInfoKey
The corresponding value is an NSString
containing the localized
help corresponding to the help button.
If present, its value is returned by NSError::help_anchor
.
See documentation.
sourcepub fn localized_description() -> &'static NSErrorUserInfoKey
pub fn localized_description() -> &'static NSErrorUserInfoKey
The corresponding value is an NSString
containing the localized
error description.
If present, its value is returned by
NSError::localized_description
.
See documentation.
sourcepub fn debug_description() -> &'static NSErrorUserInfoKey
pub fn debug_description() -> &'static NSErrorUserInfoKey
Returns NSDebugDescriptionErrorKey
, which is currently
undocumented.
See documentation.
sourcepub fn localized_failure() -> &'static NSErrorUserInfoKey
pub fn localized_failure() -> &'static NSErrorUserInfoKey
Returns NSLocalizedFailureErrorKey
, which is currently
undocumented.
See documentation.
sourcepub fn localized_failure_reason() -> &'static NSErrorUserInfoKey
pub fn localized_failure_reason() -> &'static NSErrorUserInfoKey
The corresponding value is an NSString
containing the localized
reason for the failure.
If present, its value is returned by
NSError::localized_failure_reason
.
See documentation.
sourcepub fn localized_recovery_options() -> &'static NSErrorUserInfoKey
pub fn localized_recovery_options() -> &'static NSErrorUserInfoKey
The corresponding value is an [NSArray
]<
NSString
>
containing the localized titles of buttons appropriate for displaying in
an alert panel.
If present, its value is returned by
[NSError::localized_recovery_options
].
See documentation.
sourcepub fn localized_recovery_suggestion() -> &'static NSErrorUserInfoKey
pub fn localized_recovery_suggestion() -> &'static NSErrorUserInfoKey
The corresponding value is an NSString
containing the localized
recovery suggestion for the error.
If present, its value is returned by
NSError::localized_recovery_suggestion
.
See documentation.
sourcepub fn recovery_attempter() -> &'static NSErrorUserInfoKey
pub fn recovery_attempter() -> &'static NSErrorUserInfoKey
The corresponding value is an object that conforms to the
NSErrorRecoveryAttempting
informal protocol.
If present, its value is returned by
NSError::recovery_attempter
.
See documentation.
sourcepub fn string_encoding() -> &'static NSErrorUserInfoKey
pub fn string_encoding() -> &'static NSErrorUserInfoKey
The corresponding value is an NSNumber
containing the
NSStringEncoding
value.
See documentation.
sourcepub fn underlying_error() -> &'static NSErrorUserInfoKey
pub fn underlying_error() -> &'static NSErrorUserInfoKey
The corresponding value is an error that was encountered in an underlying implementation and caused the error that the receiver represents to occur.
See documentation.
Trait Implementations
sourceimpl AsMut<NSErrorUserInfoKey> for NSString<'static>
impl AsMut<NSErrorUserInfoKey> for NSString<'static>
sourcefn as_mut(&mut self) -> &mut NSErrorUserInfoKey
fn as_mut(&mut self) -> &mut NSErrorUserInfoKey
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl<T> AsMut<T> for NSErrorUserInfoKey where
NSString<'static>: AsMut<T>,
impl<T> AsMut<T> for NSErrorUserInfoKey where
NSString<'static>: AsMut<T>,
sourceimpl AsRef<NSErrorUserInfoKey> for NSString<'static>
impl AsRef<NSErrorUserInfoKey> for NSString<'static>
sourcefn as_ref(&self) -> &NSErrorUserInfoKey
fn as_ref(&self) -> &NSErrorUserInfoKey
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl<T> AsRef<T> for NSErrorUserInfoKey where
NSString<'static>: AsRef<T>,
impl<T> AsRef<T> for NSErrorUserInfoKey where
NSString<'static>: AsRef<T>,
sourceimpl Debug for NSErrorUserInfoKey
impl Debug for NSErrorUserInfoKey
sourceimpl Display for NSErrorUserInfoKey
impl Display for NSErrorUserInfoKey
sourceimpl ObjectType for NSErrorUserInfoKey
impl ObjectType for NSErrorUserInfoKey
sourceimpl ObjectType<'static> for NSErrorUserInfoKey
impl ObjectType<'static> for NSErrorUserInfoKey
sourcefn as_objc_object(&self) -> &ObjCObject<'data>
fn as_objc_object(&self) -> &ObjCObject<'data>
Casts self
into a type-erased Objective-C object.
sourceimpl Ord for NSErrorUserInfoKey
impl Ord for NSErrorUserInfoKey
sourceimpl PartialEq<NSErrorUserInfoKey> for NSErrorUserInfoKey
impl PartialEq<NSErrorUserInfoKey> for NSErrorUserInfoKey
sourcefn eq(&self, other: &NSErrorUserInfoKey) -> bool
fn eq(&self, other: &NSErrorUserInfoKey) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NSErrorUserInfoKey) -> bool
fn ne(&self, other: &NSErrorUserInfoKey) -> bool
This method tests for !=
.
sourceimpl PartialOrd<NSErrorUserInfoKey> for NSErrorUserInfoKey
impl PartialOrd<NSErrorUserInfoKey> for NSErrorUserInfoKey
sourcefn partial_cmp(&self, other: &NSErrorUserInfoKey) -> Option<Ordering>
fn partial_cmp(&self, other: &NSErrorUserInfoKey) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for NSErrorUserInfoKey
impl StructuralEq for NSErrorUserInfoKey
impl StructuralPartialEq for NSErrorUserInfoKey
Auto Trait Implementations
impl RefUnwindSafe for NSErrorUserInfoKey
impl Send for NSErrorUserInfoKey
impl Sync for NSErrorUserInfoKey
impl Unpin for NSErrorUserInfoKey
impl UnwindSafe for NSErrorUserInfoKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more