#[repr(transparent)]pub struct WebCacheModel(pub NSUInteger);WebPreferences only.Expand description
Specifies a usage model for a WebView, which WebKit will use to determine its caching behavior.
a fixed document – like a splash screen, a chat document, or a word processing document – with no UI for navigation. The WebView will behave like any other view, releasing resources when they are no longer referenced. Remote resources, if any, will be cached to disk. This is the most memory-efficient setting.
Examples: iChat, Mail, TextMate, Growl.
a browsable series of documents with a UI for navigating between them – for example, a reference materials browser or a website designer. The WebView will cache a reasonable number of resources and previously viewed documents in memory and/or on disk.
Examples: Dictionary, Help Viewer, Coda.
application that acts as the user’s primary web browser. The WebView will cache a very large number of resources and previously viewed documents in memory and/or on disk.
Examples: Safari, OmniWeb, Shiira.
See also Apple’s documentation
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl WebCacheModel
impl WebCacheModel
pub const DocumentViewer: Self
pub const DocumentBrowser: Self
pub const PrimaryWebBrowser: Self
Trait Implementations§
Source§impl Clone for WebCacheModel
impl Clone for WebCacheModel
Source§fn clone(&self) -> WebCacheModel
fn clone(&self) -> WebCacheModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WebCacheModel
impl Debug for WebCacheModel
Source§impl Encode for WebCacheModel
impl Encode for WebCacheModel
Source§impl Hash for WebCacheModel
impl Hash for WebCacheModel
Source§impl Ord for WebCacheModel
impl Ord for WebCacheModel
Source§fn cmp(&self, other: &WebCacheModel) -> Ordering
fn cmp(&self, other: &WebCacheModel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for WebCacheModel
impl PartialEq for WebCacheModel
Source§fn eq(&self, other: &WebCacheModel) -> bool
fn eq(&self, other: &WebCacheModel) -> bool
self and other values to be equal, and is used by ==.