#[repr(transparent)]pub struct NSDecodingFailurePolicy(pub NSInteger);
Available on crate feature
NSCoder
only.Expand description
Describes the action an NSCoder should take when it encounters decode failures (e.g. corrupt data) for non-TopLevel decodes.
See also Apple’s documentation
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl NSDecodingFailurePolicy
impl NSDecodingFailurePolicy
pub const RaiseException: Self
pub const SetErrorAndReturn: Self
Trait Implementations§
Source§impl Clone for NSDecodingFailurePolicy
impl Clone for NSDecodingFailurePolicy
Source§fn clone(&self) -> NSDecodingFailurePolicy
fn clone(&self) -> NSDecodingFailurePolicy
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 NSDecodingFailurePolicy
impl Debug for NSDecodingFailurePolicy
Source§impl Encode for NSDecodingFailurePolicy
impl Encode for NSDecodingFailurePolicy
Source§impl Hash for NSDecodingFailurePolicy
impl Hash for NSDecodingFailurePolicy
Source§impl Ord for NSDecodingFailurePolicy
impl Ord for NSDecodingFailurePolicy
Source§fn cmp(&self, other: &NSDecodingFailurePolicy) -> Ordering
fn cmp(&self, other: &NSDecodingFailurePolicy) -> 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 NSDecodingFailurePolicy
impl PartialEq for NSDecodingFailurePolicy
Source§impl PartialOrd for NSDecodingFailurePolicy
impl PartialOrd for NSDecodingFailurePolicy
Source§impl RefEncode for NSDecodingFailurePolicy
impl RefEncode for NSDecodingFailurePolicy
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NSDecodingFailurePolicy
impl Eq for NSDecodingFailurePolicy
impl StructuralPartialEq for NSDecodingFailurePolicy
Auto Trait Implementations§
impl Freeze for NSDecodingFailurePolicy
impl RefUnwindSafe for NSDecodingFailurePolicy
impl Send for NSDecodingFailurePolicy
impl Sync for NSDecodingFailurePolicy
impl Unpin for NSDecodingFailurePolicy
impl UnwindSafe for NSDecodingFailurePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.