pub struct SetWebLifecycleState {
pub method: SetWebLifecycleStateMethod,
pub params: SetWebLifecycleStateParams,
}Expand description
Tries to update the web lifecycle state of the page. It will transition the page to the given state according to: https://github.com/WICG/web-lifecycle/ setWebLifecycleState
Fields§
§method: SetWebLifecycleStateMethod§params: SetWebLifecycleStateParamsImplementations§
Source§impl SetWebLifecycleState
impl SetWebLifecycleState
pub fn builder() -> SetWebLifecycleStateBuilder
Source§impl SetWebLifecycleState
impl SetWebLifecycleState
pub const IDENTIFIER: &'static str = "Page.setWebLifecycleState"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetWebLifecycleState
impl Clone for SetWebLifecycleState
Source§fn clone(&self) -> SetWebLifecycleState
fn clone(&self) -> SetWebLifecycleState
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 SetWebLifecycleState
impl CommandResult for SetWebLifecycleState
type Result = SetWebLifecycleStateResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SetWebLifecycleState
impl Debug for SetWebLifecycleState
Source§impl<'de> Deserialize<'de> for SetWebLifecycleState
impl<'de> Deserialize<'de> for SetWebLifecycleState
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<SetWebLifecycleState> for BrowserProtocolCommands
impl From<SetWebLifecycleState> for BrowserProtocolCommands
Source§fn from(v: SetWebLifecycleState) -> Self
fn from(v: SetWebLifecycleState) -> Self
Converts to this type from the input type.
Source§impl From<SetWebLifecycleState> for Command
impl From<SetWebLifecycleState> for Command
Source§fn from(v: SetWebLifecycleState) -> Self
fn from(v: SetWebLifecycleState) -> Self
Converts to this type from the input type.
Source§impl From<SetWebLifecycleState> for PageCommands
impl From<SetWebLifecycleState> for PageCommands
Source§fn from(v: SetWebLifecycleState) -> Self
fn from(v: SetWebLifecycleState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetWebLifecycleState
impl PartialEq for SetWebLifecycleState
Source§impl Serialize for SetWebLifecycleState
impl Serialize for SetWebLifecycleState
Source§impl TryFrom<BrowserProtocolCommands> for SetWebLifecycleState
impl TryFrom<BrowserProtocolCommands> for SetWebLifecycleState
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, <SetWebLifecycleState as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetWebLifecycleState as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for SetWebLifecycleState
impl TryFrom<Command> for SetWebLifecycleState
Source§impl TryFrom<PageCommands> for SetWebLifecycleState
impl TryFrom<PageCommands> for SetWebLifecycleState
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, <SetWebLifecycleState as TryFrom<PageCommands>>::Error>
fn try_from( e: PageCommands, ) -> Result<Self, <SetWebLifecycleState as TryFrom<PageCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for SetWebLifecycleState
Auto Trait Implementations§
impl Freeze for SetWebLifecycleState
impl RefUnwindSafe for SetWebLifecycleState
impl Send for SetWebLifecycleState
impl Sync for SetWebLifecycleState
impl Unpin for SetWebLifecycleState
impl UnsafeUnpin for SetWebLifecycleState
impl UnwindSafe for SetWebLifecycleState
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