#[repr(transparent)]pub struct NSFileProviderContentPolicy(pub NSInteger);
NSFileProviderItem
only.Expand description
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl NSFileProviderContentPolicy
impl NSFileProviderContentPolicy
Sourcepub const Inherited: Self
pub const Inherited: Self
Inherit the content policy of the parent folder.
This is the default policy on every item other than the root.
Sourcepub const DownloadLazily: Self
pub const DownloadLazily: Self
Download this item lazily (i.e when it is read) if it is dataless. Download remote content updates eagerly if this file is not dataless. Allow eviction on low disk pressure and other triggers.
This is the default policy on the root on macOS.
Sourcepub const DownloadLazilyAndEvictOnRemoteUpdate: Self
pub const DownloadLazilyAndEvictOnRemoteUpdate: Self
Download this item lazily (i.e when it is read.) Evict the file upon remote content update. Also allow eviction on low disk pressure and other triggers.
This is the default policy on the root on iOS.
Sourcepub const DownloadEagerlyAndKeepDownloaded: Self
pub const DownloadEagerlyAndKeepDownloaded: Self
Download this item eagerly (i.e before it is read.) Keep downloading remote updates eagerly. Prevent eviction on low disk pressure and other triggers.
When an item with the inherited policy is moved into a folder with this policy, the system will automatically schedule a download.
Trait Implementations§
Source§impl Clone for NSFileProviderContentPolicy
impl Clone for NSFileProviderContentPolicy
Source§fn clone(&self) -> NSFileProviderContentPolicy
fn clone(&self) -> NSFileProviderContentPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more