pub struct Launch {
pub method: LaunchMethod,
pub params: LaunchParams,
}Expand description
Launches the installed web app, or an url in the same web app instead of the default start url if it is provided. Returns a page Target.TargetID which can be used to attach to via Target.attachToTarget or similar APIs. launch
Fields§
§method: LaunchMethod§params: LaunchParamsImplementations§
Source§impl Launch
impl Launch
pub const IDENTIFIER: &'static str = "PWA.launch"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl CommandResult for Launch
impl CommandResult for Launch
type Result = LaunchResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for Launch
impl<'de> Deserialize<'de> for Launch
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<Launch> for BrowserProtocolCommands
impl From<Launch> for BrowserProtocolCommands
Source§impl From<Launch> for PwaCommands
impl From<Launch> for PwaCommands
Source§impl TryFrom<BrowserProtocolCommands> for Launch
impl TryFrom<BrowserProtocolCommands> for Launch
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, <Launch as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <Launch as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<PwaCommands> for Launch
impl TryFrom<PwaCommands> for Launch
Source§type Error = PwaCommands
type Error = PwaCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PwaCommands,
) -> Result<Self, <Launch as TryFrom<PwaCommands>>::Error>
fn try_from( e: PwaCommands, ) -> Result<Self, <Launch as TryFrom<PwaCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for Launch
Auto Trait Implementations§
impl Freeze for Launch
impl RefUnwindSafe for Launch
impl Send for Launch
impl Sync for Launch
impl Unpin for Launch
impl UnsafeUnpin for Launch
impl UnwindSafe for Launch
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