pub struct ProduceCompilationCacheParams<'a> { /* private fields */ }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’.
Implementations§
Source§impl<'a> ProduceCompilationCacheParams<'a>
impl<'a> ProduceCompilationCacheParams<'a>
pub fn builder( scripts: Vec<CompilationCacheParams<'a>>, ) -> ProduceCompilationCacheParamsBuilder<'a>
pub fn scripts(&self) -> &[CompilationCacheParams<'a>]
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for ProduceCompilationCacheParams<'a>
impl<'a> CdpCommand<'a> for ProduceCompilationCacheParams<'a>
Source§impl<'a> Clone for ProduceCompilationCacheParams<'a>
impl<'a> Clone for ProduceCompilationCacheParams<'a>
Source§fn clone(&self) -> ProduceCompilationCacheParams<'a>
fn clone(&self) -> ProduceCompilationCacheParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ProduceCompilationCacheParams<'a>
impl<'a> Debug for ProduceCompilationCacheParams<'a>
Source§impl<'a> Default for ProduceCompilationCacheParams<'a>
impl<'a> Default for ProduceCompilationCacheParams<'a>
Source§fn default() -> ProduceCompilationCacheParams<'a>
fn default() -> ProduceCompilationCacheParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ProduceCompilationCacheParams<'a>
impl<'de, 'a> Deserialize<'de> for ProduceCompilationCacheParams<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for ProduceCompilationCacheParams<'a>
impl<'a> RefUnwindSafe for ProduceCompilationCacheParams<'a>
impl<'a> Send for ProduceCompilationCacheParams<'a>
impl<'a> Sync for ProduceCompilationCacheParams<'a>
impl<'a> Unpin for ProduceCompilationCacheParams<'a>
impl<'a> UnsafeUnpin for ProduceCompilationCacheParams<'a>
impl<'a> UnwindSafe for ProduceCompilationCacheParams<'a>
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