pub struct ProduceCompilationCache {
pub method: ProduceCompilationCacheMethod,
pub params: ProduceCompilationCacheParams,
}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§
§method: ProduceCompilationCacheMethod§params: ProduceCompilationCacheParamsImplementations§
Source§impl ProduceCompilationCache
impl ProduceCompilationCache
pub const IDENTIFIER: &'static str = "Page.produceCompilationCache"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ProduceCompilationCache
impl Clone for ProduceCompilationCache
Source§fn clone(&self) -> ProduceCompilationCache
fn clone(&self) -> ProduceCompilationCache
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 CommandResult for ProduceCompilationCache
impl CommandResult for ProduceCompilationCache
type Result = ProduceCompilationCacheResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for ProduceCompilationCache
impl Debug for ProduceCompilationCache
Source§impl<'de> Deserialize<'de> for ProduceCompilationCache
impl<'de> Deserialize<'de> for ProduceCompilationCache
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 From<ProduceCompilationCache> for BrowserProtocolCommands
impl From<ProduceCompilationCache> for BrowserProtocolCommands
Source§fn from(v: ProduceCompilationCache) -> Self
fn from(v: ProduceCompilationCache) -> Self
Converts to this type from the input type.
Source§impl From<ProduceCompilationCache> for Command
impl From<ProduceCompilationCache> for Command
Source§fn from(v: ProduceCompilationCache) -> Self
fn from(v: ProduceCompilationCache) -> Self
Converts to this type from the input type.
Source§impl From<ProduceCompilationCache> for PageCommands
impl From<ProduceCompilationCache> for PageCommands
Source§fn from(v: ProduceCompilationCache) -> Self
fn from(v: ProduceCompilationCache) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProduceCompilationCache
impl PartialEq for ProduceCompilationCache
Source§impl Serialize for ProduceCompilationCache
impl Serialize for ProduceCompilationCache
Source§impl TryFrom<BrowserProtocolCommands> for ProduceCompilationCache
impl TryFrom<BrowserProtocolCommands> for ProduceCompilationCache
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <ProduceCompilationCache as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <ProduceCompilationCache as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for ProduceCompilationCache
impl TryFrom<Command> for ProduceCompilationCache
Source§impl TryFrom<PageCommands> for ProduceCompilationCache
impl TryFrom<PageCommands> for ProduceCompilationCache
Source§type Error = PageCommands
type Error = PageCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageCommands,
) -> Result<Self, <ProduceCompilationCache as TryFrom<PageCommands>>::Error>
fn try_from( e: PageCommands, ) -> Result<Self, <ProduceCompilationCache as TryFrom<PageCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for ProduceCompilationCache
Auto Trait Implementations§
impl Freeze for ProduceCompilationCache
impl RefUnwindSafe for ProduceCompilationCache
impl Send for ProduceCompilationCache
impl Sync for ProduceCompilationCache
impl Unpin for ProduceCompilationCache
impl UnsafeUnpin for ProduceCompilationCache
impl UnwindSafe for ProduceCompilationCache
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