#[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: NSUInteger
Implementations§
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more