#[repr(transparent)]pub struct NSURLCacheStoragePolicy(pub NSUInteger);
Available on crate feature
NSURLCache
only.Expand description
The NSURLCacheStoragePolicy enum defines constants that can be used to specify the type of storage that is allowable for an NSCachedURLResponse object that is to be stored in an NSURLCache.
NSURLCache is allowed without restriction.
storage in an NSURLCache is allowed; however storage should be done in memory only, no disk storage should be done.
NSURLCache is not allowed in any fashion, either in memory or on disk.
See also Apple’s documentation
Tuple Fields§
§0: NSUInteger
Implementations§
Source§impl NSURLCacheStoragePolicy
impl NSURLCacheStoragePolicy
pub const Allowed: Self
pub const AllowedInMemoryOnly: Self
pub const NotAllowed: Self
Trait Implementations§
Source§impl Clone for NSURLCacheStoragePolicy
impl Clone for NSURLCacheStoragePolicy
Source§fn clone(&self) -> NSURLCacheStoragePolicy
fn clone(&self) -> NSURLCacheStoragePolicy
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 NSURLCacheStoragePolicy
impl Debug for NSURLCacheStoragePolicy
Source§impl Encode for NSURLCacheStoragePolicy
impl Encode for NSURLCacheStoragePolicy
Source§impl Hash for NSURLCacheStoragePolicy
impl Hash for NSURLCacheStoragePolicy
Source§impl Ord for NSURLCacheStoragePolicy
impl Ord for NSURLCacheStoragePolicy
Source§fn cmp(&self, other: &NSURLCacheStoragePolicy) -> Ordering
fn cmp(&self, other: &NSURLCacheStoragePolicy) -> 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 NSURLCacheStoragePolicy
impl PartialEq for NSURLCacheStoragePolicy
Source§impl PartialOrd for NSURLCacheStoragePolicy
impl PartialOrd for NSURLCacheStoragePolicy
Source§impl RefEncode for NSURLCacheStoragePolicy
impl RefEncode for NSURLCacheStoragePolicy
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 NSURLCacheStoragePolicy
impl Eq for NSURLCacheStoragePolicy
impl StructuralPartialEq for NSURLCacheStoragePolicy
Auto Trait Implementations§
impl Freeze for NSURLCacheStoragePolicy
impl RefUnwindSafe for NSURLCacheStoragePolicy
impl Send for NSURLCacheStoragePolicy
impl Sync for NSURLCacheStoragePolicy
impl Unpin for NSURLCacheStoragePolicy
impl UnwindSafe for NSURLCacheStoragePolicy
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.