pub struct ProduceCompilationCacheParams {
pub scripts: Vec<CompilationCacheParams>,
}Expand description
Requests backend to produce compilation cache for the specified scripts.
scripts are appended to the list of scripts for which the cache
would be produced. The list may be reset during page navigation.
When script with a matching URL is encountered, the cache is optionally
produced upon backend discretion, based on internal heuristics.
See also: Page.compilationCacheProduced.
produceCompilationCache
Fields§
§scripts: Vec<CompilationCacheParams>Implementations§
Source§impl ProduceCompilationCacheParams
impl ProduceCompilationCacheParams
pub fn new(scripts: Vec<CompilationCacheParams>) -> Self
Trait Implementations§
Source§impl Clone for ProduceCompilationCacheParams
impl Clone for ProduceCompilationCacheParams
Source§fn clone(&self) -> ProduceCompilationCacheParams
fn clone(&self) -> ProduceCompilationCacheParams
Returns a duplicate 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<'de> Deserialize<'de> for ProduceCompilationCacheParams
impl<'de> Deserialize<'de> for ProduceCompilationCacheParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProduceCompilationCacheParams
impl PartialEq for ProduceCompilationCacheParams
Source§fn eq(&self, other: &ProduceCompilationCacheParams) -> bool
fn eq(&self, other: &ProduceCompilationCacheParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProduceCompilationCacheParams
Auto Trait Implementations§
impl Freeze for ProduceCompilationCacheParams
impl RefUnwindSafe for ProduceCompilationCacheParams
impl Send for ProduceCompilationCacheParams
impl Sync for ProduceCompilationCacheParams
impl Unpin for ProduceCompilationCacheParams
impl UnsafeUnpin for ProduceCompilationCacheParams
impl UnwindSafe for ProduceCompilationCacheParams
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