pub struct SetPrerenderingAllowed {
pub method: SetPrerenderingAllowedMethod,
pub params: SetPrerenderingAllowedParams,
}Expand description
Enable/disable prerendering manually.
This command is a short-term solution for https://crbug.com/1440085. See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA for more details.
TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets. setPrerenderingAllowed
Fields§
§method: SetPrerenderingAllowedMethod§params: SetPrerenderingAllowedParamsImplementations§
Source§impl SetPrerenderingAllowed
impl SetPrerenderingAllowed
pub fn builder() -> SetPrerenderingAllowedBuilder
Source§impl SetPrerenderingAllowed
impl SetPrerenderingAllowed
pub const IDENTIFIER: &'static str = "Page.setPrerenderingAllowed"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetPrerenderingAllowed
impl Clone for SetPrerenderingAllowed
Source§fn clone(&self) -> SetPrerenderingAllowed
fn clone(&self) -> SetPrerenderingAllowed
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 SetPrerenderingAllowed
impl CommandResult for SetPrerenderingAllowed
type Result = SetPrerenderingAllowedResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SetPrerenderingAllowed
impl Debug for SetPrerenderingAllowed
Source§impl<'de> Deserialize<'de> for SetPrerenderingAllowed
impl<'de> Deserialize<'de> for SetPrerenderingAllowed
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<SetPrerenderingAllowed> for BrowserProtocolCommands
impl From<SetPrerenderingAllowed> for BrowserProtocolCommands
Source§fn from(v: SetPrerenderingAllowed) -> Self
fn from(v: SetPrerenderingAllowed) -> Self
Converts to this type from the input type.
Source§impl From<SetPrerenderingAllowed> for Command
impl From<SetPrerenderingAllowed> for Command
Source§fn from(v: SetPrerenderingAllowed) -> Self
fn from(v: SetPrerenderingAllowed) -> Self
Converts to this type from the input type.
Source§impl From<SetPrerenderingAllowed> for PageCommands
impl From<SetPrerenderingAllowed> for PageCommands
Source§fn from(v: SetPrerenderingAllowed) -> Self
fn from(v: SetPrerenderingAllowed) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetPrerenderingAllowed
impl PartialEq for SetPrerenderingAllowed
Source§impl Serialize for SetPrerenderingAllowed
impl Serialize for SetPrerenderingAllowed
Source§impl TryFrom<BrowserProtocolCommands> for SetPrerenderingAllowed
impl TryFrom<BrowserProtocolCommands> for SetPrerenderingAllowed
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, <SetPrerenderingAllowed as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetPrerenderingAllowed as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for SetPrerenderingAllowed
impl TryFrom<Command> for SetPrerenderingAllowed
Source§impl TryFrom<PageCommands> for SetPrerenderingAllowed
impl TryFrom<PageCommands> for SetPrerenderingAllowed
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, <SetPrerenderingAllowed as TryFrom<PageCommands>>::Error>
fn try_from( e: PageCommands, ) -> Result<Self, <SetPrerenderingAllowed as TryFrom<PageCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetPrerenderingAllowed
Auto Trait Implementations§
impl Freeze for SetPrerenderingAllowed
impl RefUnwindSafe for SetPrerenderingAllowed
impl Send for SetPrerenderingAllowed
impl Sync for SetPrerenderingAllowed
impl Unpin for SetPrerenderingAllowed
impl UnsafeUnpin for SetPrerenderingAllowed
impl UnwindSafe for SetPrerenderingAllowed
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